Possible reasons for a crash in glDrawElements()

Started by Qudus, June 08, 2008, 15:56:35

Previous topic - Next topic

Qudus

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

Fool Running

The code you use would help a lot, but generally it happens if you try to draw more elements then there is data.
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

Qudus


plummew

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.