Skip to content
Permalink
Browse files
Test for the GL extension, not whether the entry point is NULL.
(glXGetProcAddress() can legally return a non-NULL pointer...you have to make
 sure it is safe to call yourself by checking the GL_EXTENSIONS string!)
  • Loading branch information
icculus committed May 24, 2011
1 parent f878408 commit 0feb63deb391ee035e1f89c2de8c6052836550d1

File 1 of 1 in 0feb63d

@@ -689,7 +689,7 @@ static void impl_ARB1_PushUniforms(void)
else if (type == MOJOSHADER_UNIFORM_INT)
{
int i;
if (ctx->glProgramLocalParameterI4ivNV != NULL)
if (ctx->have_GL_NV_gpu_program4)
{
// GL_NV_gpu_program4 has integer uniform loading support.
for (i = 0; i < size; i++, srci += 4, loc++)
@@ -710,7 +710,7 @@ static void impl_ARB1_PushUniforms(void)
else if (type == MOJOSHADER_UNIFORM_BOOL)
{
int i;
if (ctx->glProgramLocalParameterI4ivNV != NULL)
if (ctx->have_GL_NV_gpu_program4)
{
// GL_NV_gpu_program4 has integer uniform loading support.
for (i = 0; i < size; i++, srcb++, loc++)

0 comments on commit 0feb63d

Please sign in to comment.