简体   繁体   中英

`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?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM