The Khronos Group - a non-profit industry consortium to develop, publish and promote open standard, royalty-free media authoring and acceleration standards for desktop and handheld devices, combined with conformance qualification programs for platform and device interoperability.

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Using IBO offset causing crash with OpenGLES 1.1

Hello all,

I am using a mobile device with Adreno 205 ( HTC Desire HD ) and OpenGL ES 1.1 for my application ( no shaders involved ).
Thinking of improving performance I moved to using VBO/IBOs in my rendering but found out that glDrawElements crashes when I use its last parameter for rendering from a certain offset in the index buffer object. It is always working with zero offset but does not like index offsets different from zero. I over analyzed every aspect ( data, offsets ) and everything is ok, the same code is working perfectly on my desktop computer.
My vertex attributes are just float type coordinates GL_FLOAT ( 12 bytes total ) and index type is GL_UNSIGNED_SHORT ( 2 bytes ).
Is there an explanation for this behavior?

PS my latest tests shows that there is a strange 32k limit for offset. When the offset is pointing to less than 32k but different from zero and the count reaches beyond this 32k limit, it crashes. Otherwise it is working fine.
I also tested the same code on a Samsung Galaxy S2 with Mali400 GPU and it is working fine. The problem persists with the Adreno GPUs.