Skip to content

Commit

Permalink
Forgot a piece with SUPPORT_PRESHADERS preprocessor test.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 11, 2011
1 parent 3500439 commit 6c1b124
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mojoshader_opengl.c
Expand Up @@ -2162,9 +2162,10 @@ void MOJOSHADER_glProgramReady(void)
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;
Expand All @@ -2189,6 +2190,7 @@ void MOJOSHADER_glProgramReady(void)

if (ran_preshader)
ctx->generation++;
#endif

for (i = 0; i < count; i++)
{
Expand Down

0 comments on commit 6c1b124

Please sign in to comment.