Got Opengl Error 0x505 While Texture Cache Statistic Is Low
I am developing an android game using cocos2dx 2.2 + lua. While testing,I got a lot of 'opengl error 0x505' from logcat. According to opengl doc, this means 'out of memory'. Hence,
Solution 1:
I got the same error with our game (running Cocos2d-x 3.3) on some low end devices, along with some funky rendering problems. The cause in our case was a custom OpenGL fragment shader which was too big in terms of code, and reducing the size of that fixed the issue.
On a general note, the fact that the error comes from OpenGL suggests to me that the problem is GPU memory rather than RAM. And since CCTextureCache (to my knowledge) only occupies RAM, I'm guessing the problem is unrelated to that.
Post a Comment for "Got Opengl Error 0x505 While Texture Cache Statistic Is Low"