Android OpenGL ES2.0 Texture Swapping

折月煮酒 提交于 2019-12-02 00:23:07

You're probably hitting some limit of maximum active textures, for example as docs says:

glActivateTexture - The number of texture units is implementation dependent, but must be at least two

Also you might want to check GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS (with glGet).

To debug problem you might want to check for glGetError after each call glActiveTexture/glBindTexture and maybe those glUniform1i.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!