Skip to content

Commit

Permalink
Move glsl "#version" pragma to the preflight section, so it's always …
Browse files Browse the repository at this point in the history
…first.
  • Loading branch information
icculus committed Aug 16, 2009
1 parent e3c63f4 commit 2437507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader.c
Expand Up @@ -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. */ ;
Expand Down

0 comments on commit 2437507

Please sign in to comment.