开发者

Using libRocket with iOS

I'm trying to use libRocket in an iPhone application (with cocos2d), but I can't seem to get over OpenGL error 0x0500 in -[EAGLView swapBuffers]. It seems to be 开发者_如何学运维triggered when calling glDrawElements(GL_TRIANGLES, num_indices, GL_UNSIGNED_INT, indices); in ShellRenderInterfaceOpenGL.

I had to change GL_RGB8 to GL_RGB in the GenerateTexture function. I'm sure it's probably related but GL_RGB8 is not found when compiling.

any pointers?


In OpenGL ES, glDrawElements accepts type = GL_UNSIGNED_BYTE or type = GL_UNSIGNED_SHORT, GL_UNSIGNED_INT is not valid and thus generates GL error 0x500, which is GL_INVALID_ENUM.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜