Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GL_BGRA/GL_UNSIGNED_INT_8_8_8_8_REV when supported. #16

Closed
renpytom opened this issue Aug 10, 2012 · 0 comments
Closed

Use GL_BGRA/GL_UNSIGNED_INT_8_8_8_8_REV when supported. #16

renpytom opened this issue Aug 10, 2012 · 0 comments

Comments

@renpytom
Copy link
Member

renpytom commented Aug 10, 2012

According to several sources, doing a glTexSubImage2D with GL_BGRA and GL_UNSIGNED_INT_8_8_8_8_REV can be faster than using GL_RGBA/GL_UNSIGNED_BYTE. Sources include:

We'll need a separate code path for OpenGL and OpenGL ES, since the latter does not support BGRA out of the box.

renpytom pushed a commit that referenced this issue May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant