From 2437507829bad48822b06a98f4980b830916d6d6 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 16 Aug 2009 17:00:32 -0400 Subject: [PATCH] Move glsl "#version" pragma to the preflight section, so it's always first. --- mojoshader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mojoshader.c b/mojoshader.c index 0d347b1c..838df105 100644 --- a/mojoshader.c +++ b/mojoshader.c @@ -2106,7 +2106,7 @@ static void emit_GLSL_start(Context *ctx, const char *profilestr) return; } // if - ctx->output = &ctx->globals; + ctx->output = &ctx->preflight; if (strcmp(profilestr, MOJOSHADER_PROFILE_GLSL) == 0) /* no-op. */ ;