gl_rmisc.c: allow glsl gamma to be used in combination with -novbo

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1170 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Eric Wasylishen 2015-02-20 00:23:44 +00:00
parent 6ddd983eb8
commit 39bd217f6c

View file

@ -396,7 +396,7 @@ GLuint GL_CreateProgram (const GLchar *vertSource, const GLchar *fragSource, int
int i;
GLuint program, vertShader, fragShader;
if (!GLAlias_SupportsShaders())
if (!gl_glsl_able)
return 0;
vertShader = GL_CreateShaderFunc (GL_VERTEX_SHADER);
@ -459,7 +459,7 @@ void R_DeleteShaders (void)
{
int i;
if (!GLAlias_SupportsShaders())
if (!gl_glsl_able)
return;
for (i = 0; i < gl_num_programs; i++)