Optimize EGLRenderer overlay texture swizzle

This commit is contained in:
Cameron Gutman 2025-12-28 22:53:45 -06:00
commit 31c65e0863

View file

@ -4,9 +4,5 @@ uniform sampler2D uTexture;
varying vec2 vTexCoord;
void main() {
vec4 abgr = texture2D(uTexture, vTexCoord);
gl_FragColor = abgr;
gl_FragColor.r = abgr.b;
gl_FragColor.b = abgr.r;
gl_FragColor = texture2D(uTexture, vTexCoord).bgra;
}