don't crash on missing fog shaders.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4450 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-07-31 18:00:11 +00:00
parent 1241494248
commit 7b1eb0b906
1 changed files with 1 additions and 1 deletions

View File

@ -3680,7 +3680,7 @@ static void DrawMeshes(void)
DrawPass(p);
}
}
if (shaderstate.curbatch->fog)
if (shaderstate.curbatch->fog && shaderstate.curbatch->fog->shader)
{
GL_DeSelectProgram();