summaryrefslogtreecommitdiff
path: root/src/render/shaders/glsl/ext.frag
diff options
context:
space:
mode:
authorTom Englund <tomenglund26@gmail.com>2025-07-01 11:32:00 +0200
committerGitHub <noreply@github.com>2025-07-01 11:32:00 +0200
commitf464dfbefa08089433301f011b81c70f100ab18e (patch)
tree6188c5f4e31d79f2192965665d86e26046c1043c /src/render/shaders/glsl/ext.frag
parent8c37d2ce258df773ba7d8b10e7d0ff49d77ed476 (diff)
shader: replace texture2d with texture (#10893)
* shader: replace texture2d with texture remove unused v_color and replace deprecated texture2d with texture. * shader: use the more modern essl3 extension GL_OES_EGL_image_external_essl3 provides support for samplerExternalOES in texture function, aquamarine already use it. apply it here too.
Diffstat (limited to 'src/render/shaders/glsl/ext.frag')
-rw-r--r--src/render/shaders/glsl/ext.frag4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/shaders/glsl/ext.frag b/src/render/shaders/glsl/ext.frag
index d8a12c39..f540a9f9 100644
--- a/src/render/shaders/glsl/ext.frag
+++ b/src/render/shaders/glsl/ext.frag
@@ -1,7 +1,7 @@
#version 300 es
#extension GL_ARB_shading_language_include : enable
-#extension GL_OES_EGL_image_external : require
+#extension GL_OES_EGL_image_external_essl3 : require
precision highp float;
in vec2 v_texcoord;
@@ -20,7 +20,7 @@ uniform vec3 tint;
layout(location = 0) out vec4 fragColor;
void main() {
- vec4 pixColor = texture2D(texture0, v_texcoord);
+ vec4 pixColor = texture(texture0, v_texcoord);
if (discardOpaque == 1 && pixColor[3] * alpha == 1.0)
discard;