Move glsl "#version" pragma to the preflight section, so it's always first.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 16 Aug 2009 17:00:32 -0400
changeset 776 1b3498c2339e
parent 775 2c93dcb14687
child 777 5ab8bb0ac2af
Move glsl "#version" pragma to the preflight section, so it's always first.
mojoshader.c
--- a/mojoshader.c	Sat Aug 15 03:44:36 2009 -0400
+++ b/mojoshader.c	Sun Aug 16 17:00:32 2009 -0400
@@ -2106,7 +2106,7 @@
         return;
     } // if
 
-    ctx->output = &ctx->globals;
+    ctx->output = &ctx->preflight;
 
     if (strcmp(profilestr, MOJOSHADER_PROFILE_GLSL) == 0)
         /* no-op. */ ;