mojoshader_opengl.c
branchtrunk
changeset 221 328ac819b965
parent 220 df5ea69833d5
child 222 ed4421aa7e00
equal deleted inserted replaced
220:df5ea69833d5 221:328ac819b965
   487                                      int index, unsigned int size,
   487                                      int index, unsigned int size,
   488                                      MOJOSHADER_attributeType type,
   488                                      MOJOSHADER_attributeType type,
   489                                      int normalized, unsigned int stride,
   489                                      int normalized, unsigned int stride,
   490                                      const void *ptr)
   490                                      const void *ptr)
   491 {
   491 {
   492     if (bound_program == NULL)
   492     if ((bound_program == NULL) || (bound_program->vertex == NULL))
   493         return;
   493         return;
   494 
   494 
   495     // Since glVertexPointer() lacks the flexibility that we can get from
   495     // Since glVertexPointer() lacks the flexibility that we can get from
   496     //  glVertexAttribPointer(), we set POSITION0 to a generic vertex
   496     //  glVertexAttribPointer(), we set POSITION0 to a generic vertex
   497     //  attribute, and the shaders we generate know to look there instead of
   497     //  attribute, and the shaders we generate know to look there instead of