Jump to content
Posted 14 June 2014 - 07:26 PM
Posted 14 June 2014 - 11:52 PM
Is this the problem?
For only nVidia PC drivers (not OS X), if you enable a vertex array that doesn't exist in the shader, it'll crash with a access violation when you attempt to draw on the shader. Other drivers ignore this, as it's really a no-op.
Waiting for my tester to try now.
It's been tried on two ATI cards and works. Three geforce computers and it fails. Works on my quadro card.
Edited by polyfrag, 15 June 2014 - 12:44 AM.
Posted 15 June 2014 - 03:36 AM
fYi, I once had a bug related to this, when drawing and binding a VAO, that had no index and vertex bindings. So the VAO existed but was not configured. You might look in to this as well.
glGetError will only help, if the function you call at least returns. When it results in an access violation or whatever glGetError won't even be called. But its a good thing to do when generating,updating or binding buffers/textures/... If you not already did this, write a little macro, that automatically checks errors after GL calls when compiling with __DEBUG or something.