I’ve looked at the docs, I’ve check the call and it’s values multiple times, I cannot find a reason for glDrawElements to report an invalid enum:
Debug Message: 'GL_INVALID_ENUM', GL_INVALID_ENUM in glDrawElements
~
void DrawSymbol( SYMBOL *S, uint used, uint draw )
{ TYPE *T = Types + S->type; glDrawElements( draw, used, T->type, NULL ); }
~
glVertexArrayElementBuffer( Layout.id, bCache.id );
BindSymbol( &Layout, &sPoint, &bPoint );
DrawSymbol( &sPoint, 3, GL_TRIANGLES );
BindSymbol( &Layout, &sColor, &bColor );
DrawSymbol( &sColor, 3, GL_TRIANGLES );
Btw this is in the separate project I spoke of before that’s meant for me to get a line by line understanding of what should be called so I can see why I’m still not getting triangles with data not given directly in the shaders.
Any ideas what is causing the message?