mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-02 22:11:22 +00:00
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:
parent
6ddd983eb8
commit
39bd217f6c
1 changed files with 2 additions and 2 deletions
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue