Skip to content

Commit

Permalink
Minor logic tweak.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 3, 2009
1 parent b4ba9e2 commit 0a788f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_opengl.c
Expand Up @@ -1067,7 +1067,7 @@ MOJOSHADER_glShader *MOJOSHADER_glCompileShader(const unsigned char *tokenbuf,
ctx->malloc_fn,
ctx->free_fn,
ctx->malloc_data);
if (pd->errors != NULL)
if (pd->error_count > 0)
{
set_error(pd->errors[0].error);
goto compile_shader_fail;
Expand Down

0 comments on commit 0a788f6

Please sign in to comment.