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
This commit is contained in:
mungewell 2011-12-15 06:11:25 +00:00
parent 90712244be
commit bdab5c7a34

View file

@ -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);
}