Skip to content

Commit

Permalink
Fixed NULL pointer access when linking without both a vertex and pixe…
Browse files Browse the repository at this point in the history
…l shader.
  • Loading branch information
icculus committed May 29, 2012
1 parent daa96c9 commit 925dbf1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mojoshader_opengl.c
Expand Up @@ -1667,6 +1667,9 @@ static void lookup_samplers(MOJOSHADER_glProgram *program,
static void lookup_outputs(MOJOSHADER_glProgram *program,
MOJOSHADER_glShader *shader)
{
if (shader == NULL)
return;

const MOJOSHADER_parseData *pd = shader->parseData;
int i;

Expand Down

0 comments on commit 925dbf1

Please sign in to comment.