OpenGL ES 2.0 screen flickering

家住魔仙堡 提交于 2019-12-05 03:39:14

Finally found the solution.

When i call glFlush() after every rendering circle, it works fine. I no render every plane on a different texture channel, it works perfectly so far. Thanks for the help.

nmr

When you call ..:

GLES20.glUniform1iv( m_HTextureUniform, 2, m_nTextureStorage, 0 );

I think that binds a particular texture unit to the sampler uniform. But you're passing a texture name/object/handle/whatever (which is not a texture unit.) Maybe it's just coincidence, and you only ever pass in 0 (which is possibly the texture name in m_nTextureStorage,) which is coincidentally the correct/desired value?

Or maybe this results in the user-space driver crashing.

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