mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-01 05:00:46 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue