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:
parent
1241494248
commit
7b1eb0b906
|
@ -3680,7 +3680,7 @@ static void DrawMeshes(void)
|
||||||
DrawPass(p);
|
DrawPass(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (shaderstate.curbatch->fog)
|
if (shaderstate.curbatch->fog && shaderstate.curbatch->fog->shader)
|
||||||
{
|
{
|
||||||
GL_DeSelectProgram();
|
GL_DeSelectProgram();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue