Been stuck on a real annoying problem and need some help. I got a very simple vertex and fragment shader which is working fine when I use GL_TRIANGLES but as soon as I switch to using to GL_QUADS all I get is a blank screen.
I know the buffers are populated correctly with index and vertex data.
My render function use glDrawElements(GL_QUADS,4,GL_UNSIGNED_BYTE,0);, this doesn’t work but if I switch to glDrawElements(GL_TRIANGLES,3,GL_UNSIGNED_BYTE,0); it works fine with the same buffers.