mojoshader_opengl.c
changeset 1067 e6397ec11bc9
parent 1066 ff14db741834
child 1069 12e1db42bf75
--- a/mojoshader_opengl.c	Fri Nov 11 02:20:36 2011 -0500
+++ b/mojoshader_opengl.c	Fri Nov 11 03:15:36 2011 -0500
@@ -2162,9 +2162,10 @@
         GLint *dsti = program->vs_uniforms_int4;
         GLint *dstb = program->vs_uniforms_bool;
         const MOJOSHADER_preshader *preshader = NULL;
-        int ran_preshader = 0;
         uint32 i;
 
+        #if SUPPORT_PRESHADERS
+        int ran_preshader = 0;
         if (program->vertex)
         {
             preshader = program->vertex->parseData->preshader;
@@ -2189,6 +2190,7 @@
 
         if (ran_preshader)
             ctx->generation++;
+        #endif
 
         for (i = 0; i < count; i++)
         {