X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameDraw.cpp;fp=Source%2FGameDraw.cpp;h=8f33c0cbe8338fdd448b2535fff063a8204cf602;hb=1f7114ce6178de7231a890c31535acbbc34b3c6b;hp=0cc214ef4076a7b5ffde0350d6af85eb53070cbd;hpb=11fc7bb36280c27d231753a9b3b3e95210351144;p=lugaru.git diff --git a/Source/GameDraw.cpp b/Source/GameDraw.cpp index 0cc214e..8f33c0c 100644 --- a/Source/GameDraw.cpp +++ b/Source/GameDraw.cpp @@ -237,10 +237,11 @@ int Game::DrawGLScene(StereoSide side) static XYZ terrainlight; static float distance; - if (drawmode == normalmode) + if (drawmode == normalmode) { Game::ReSizeGLScene(90, .1f); - if (drawmode != normalmode) + } else { glViewport(0, 0, texviewwidth, texviewheight); + } glDepthFunc(GL_LEQUAL); glDepthMask(1); glAlphaFunc(GL_GREATER, 0.0001f); @@ -286,9 +287,10 @@ int Game::DrawGLScene(StereoSide side) else blurness -= multiplier * 5; - if (environment == desertenvironment && detail == 2) - glTexEnvf( GL_TEXTURE_FILTER_CONTROL, GL_TEXTURE_LOD_BIAS, blurness + .4 ); if (environment == desertenvironment) { + if (detail == 2) { + glTexEnvf( GL_TEXTURE_FILTER_CONTROL, GL_TEXTURE_LOD_BIAS, blurness + .4 ); + } glRotatef((float)(abs(Random() % 100)) / 1000, 1, 0, 0); glRotatef((float)(abs(Random() % 100)) / 1000, 0, 1, 0); }