mojoshader_opengl.c
changeset 1024 dbff93345a84
parent 1023 8f4d16a3b380
child 1039 2f758145e80e
--- a/mojoshader_opengl.c	Tue May 24 04:35:01 2011 -0400
+++ b/mojoshader_opengl.c	Tue May 24 04:38:48 2011 -0400
@@ -689,7 +689,7 @@
         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 @@
         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++)