[bug]GL random crashes on iphone simulator

[bug]GL random crashes on iphone simulator
0.0 0


glDrawElements randomly crashes on iphone simulator when you pass NULL as its last parameter. It appears fixed if I force uploading index buffer. I think there is a macro that controls if this happens. It probably should be compile-enabled for ios simulator.


What codes cause crash?


I don’t have the stack trace right now but will post if I run into it again. It turned out this crash happened again on simulator today, even with uploading index buffer enabled. I might be mistaken but I haven’t seen it happen on device. So not really sure what the cause is now.