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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.