Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't update vertex arrays if bound program has no vertex shader.
--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 27, 2008
1 parent fd772ac commit 554d09b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_opengl.c
Expand Up @@ -489,7 +489,7 @@ void MOJOSHADER_glSetVertexAttribute(MOJOSHADER_usage usage,
int normalized, unsigned int stride,
const void *ptr)
{
if (bound_program == NULL)
if ((bound_program == NULL) || (bound_program->vertex == NULL))
return;

// Since glVertexPointer() lacks the flexibility that we can get from
Expand Down

0 comments on commit 554d09b

Please sign in to comment.