Skip to content

Support more texture formats with the OpenGL ES 2 renderer#15411

Open
ccawley2011 wants to merge 3 commits intolibsdl-org:mainfrom
ccawley2011:opengles2-format
Open

Support more texture formats with the OpenGL ES 2 renderer#15411
ccawley2011 wants to merge 3 commits intolibsdl-org:mainfrom
ccawley2011:opengles2-format

Conversation

@ccawley2011
Copy link
Copy Markdown
Contributor

  • I confirm that I am the author of this code and release it to the SDL project under the Zlib license. This contribution does not contain code from other sources, including code generated by a Large Language Model ("AI").

Description

This includes some of the changes from PR #9910, and also adds support for the GL_EXT_texture_format_BGRA8888 where available instead of swapping red and blue in the shader.

@slouken slouken added this to the 3.x milestone Apr 20, 2026
@slouken
Copy link
Copy Markdown
Collaborator

slouken commented Apr 20, 2026

This PR is failing CI, FYI.

@slouken
Copy link
Copy Markdown
Collaborator

slouken commented Apr 20, 2026

Have you done any performance testing to verify that using the extension is faster than colorswapping in the shader? My impression was that they were equivalent in speed, and if so, there's no need to add complexity by checking for the extension.

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

Successfully merging this pull request may close these issues.

2 participants