1
0
Fork 0
forked from fte/fteqw

try to fix a crash OMC is having.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4508 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-10-21 04:27:36 +00:00
parent f52cf7cae1
commit 27debce140

View file

@ -1344,6 +1344,9 @@ void GLBE_Init(void)
"}\n"
"}\n"
);
//if the shader doesn't work, give up with that.
if (!shaderstate.depthonlyshader || !shaderstate.depthonlyshader->prog)
shaderstate.depthonlyshader = NULL;
//make sure the world draws correctly
r_worldentity.shaderRGBAf[0] = 1;