Could please someone sum up the possible reasons for a VM crash in glDrawElements()?
I am very sure, that all the vertex_array states are correctly set up (and all enabled vertex arrays are correctly bound), which led me to crashes in the past.
Thanks in advance.
Marvin
The code you use would help a lot, but generally it happens if you try to draw more elements then there is data.
Quote from: Fool Running on June 09, 2008, 16:58:19
The code you use would help a lot,
Here is the code:
http://xith3d.svn.sourceforge.net/viewvc/xith3d/trunk/src/org/xith3d/render/lwjgl/ShapeAtomPeer.java?view=markup
Quote from: Fool Running on June 09, 2008, 16:58:19
but generally it happens if you try to draw more elements then there is data.
Thanks. I will check that.
Marvin
If this is still an outstanding issue, can I suggest the following which might help:
Identify which of the 2 calls to glDrawElements is failing.
At what point are you crashing - during the call to glDrawElements or during the lwjgl display update method?
It may help if you display the glError value both before and after the call to glDrawElements. This may indicate the nature of the problem. It may even indicate that the error condition exists prior to your call to glDrawElements.
Cheers.