Alright, thank you so much for this info!
So, this is the input to the erring glDrawElements
:
W/defold (24492): WARNING:GRAPHICS: MAWE: DrawElements:
W/defold (24492): WARNING:GRAPHICS: MAWE: prim_type: 4
W/defold (24492): WARNING:GRAPHICS: MAWE: count: 36 00000024
W/defold (24492): WARNING:GRAPHICS: MAWE: type: 5125
W/defold (24492): WARNING:GRAPHICS: MAWE: first: 0 00000000
E/defold (24492): ERROR:GRAPHICS: DrawElements(1311): gl error 1280: 'GL_INVALID_ENUM' from glDrawElements
The error it gives is GL_INVALID_ENUM
, and looking at the input enums prim_type
, a.k.a mode in the documentation, and type
:
-
Prim type 4
corresponds to GL_TRIANGLES
-
And type 5125
(or 1405
in hexadecimal), is GL_UNSIGNED_INT.
Although, in the gl.h
I looked at in our current Android SDK, that enum isn’t defined(!)
The GL_UNSIGNED_INT
means that there are indices higher than 65535, which is quite a lot.
By the looks of your game, I guess you’re not using 3d models, but only sprites?
Have you by any chance increased the game project setting sprite.max_count
to something high?