Skip to content

Conversation

BinBashBanana
Copy link
Contributor

This makes it so that in GLES2 contexts, GLSL versions higher than 100 will not be tried, because they are guaranteed to fail. Because of this change I was also able to enable the better XMB ribbon for GLES3 without also breaking GLES2. (dFdx and dFdy are enabled by the GL_OES_standard_derivatives extension in GLES2, but are core in GLES3. Any shaders using them in GLES3 contexts must use at least #version 300 es to compile though. I set the shaders that use those functions to use #version 130, which maps to 300 es in GLES3 but works just fine as 100 on GLES2 as well.)

@BinBashBanana
Copy link
Contributor Author

This also enables shaders such as ScaleFX on GLES2: see libretro/glsl-shaders#518.

@LibretroAdmin LibretroAdmin merged commit cfc59db into libretro:master Sep 19, 2025
31 checks passed
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