From bdab5c7a3411e0ff6dda449dbdbadf439ca35582 Mon Sep 17 00:00:00 2001 From: mungewell Date: Thu, 15 Dec 2011 06:11:25 +0000 Subject: [PATCH] Prevent bluesky when raining (caused by trackmap changing texture mode) git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4274 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 25b15593b17be77e423fde84ab3aadfe6cee4096 Former-commit-id: 856a089e5caa35401902fbb83b6e188acb98d328 --- src/modules/graphic/ssggraph/grscreen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/graphic/ssggraph/grscreen.cpp b/src/modules/graphic/ssggraph/grscreen.cpp index 09481d684..9891de71c 100644 --- a/src/modules/graphic/ssggraph/grscreen.cpp +++ b/src/modules/graphic/ssggraph/grscreen.cpp @@ -243,6 +243,7 @@ void cGrScreen::camDraw(tSituation *s) if (dispCam->getDrawBackground()) { glDisable(GL_LIGHTING); glDisable(GL_DEPTH_TEST); + glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); grDrawStaticBackground(dispCam, bgCam); glClear(GL_DEPTH_BUFFER_BIT); }