Fix some crashes with rtworld enabled.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5752 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2020-08-26 09:25:48 +00:00
parent 8651ff62d8
commit 79d851d6ea

View file

@ -2319,7 +2319,7 @@ static GLhandleARB GLSlang_CreateShader (program_t *prog, const char *name, int
);
}
if (prog && !prog->explicitsyms)
if (!prog || !prog->explicitsyms)
{ //for compat with our vulkan processor, which injects samplers in order to control layouts.
const char *defaultsamplernames[] =
{
@ -2409,7 +2409,7 @@ static GLhandleARB GLSlang_CreateShader (program_t *prog, const char *name, int
);
}
if (!prog->explicitsyms)
if (!prog || !prog->explicitsyms)
{
if (gl_config_nofixedfunc)
{