当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - `glCopyTexImage2D` using `GL_RGB8_OES` extension on OpenGL ES 2.0 iPhone 6.1

问题描述:

When I call

glCopyTexImage2D( GL_TEXTURE_2D, 0, GL_RGB8_OES, 0, 0, w, h, 0 );

I get GLERROR 1281 GL_INVALID_VALUE. If I use

glCopyTexImage2D( GL_TEXTURE_2D, 0, GL_RGB, 0, 0, w, h, 0 );

It works fine.

It seems GL_RGB8_OES is unsupported for glCopyTexImage2D! Such a glaring omission, I find that hard to believe. How can I rescue the alpha channel?

网友答案:

Have you tried using GL_RGBA ?

http://www.opengl.org/sdk/docs/man/xhtml/glCopyTexImage2D.xml

分享给朋友:
您可能感兴趣的文章:
随机阅读: