aboutsummaryrefslogtreecommitdiff
path: root/render/gles2
diff options
context:
space:
mode:
authornyorain <nyorain@gmail.com>2017-08-12 14:48:24 +0200
committernyorain <nyorain@gmail.com>2017-08-12 14:48:24 +0200
commitf066ff6d02992295c966bbd7a0200f820e4492ed (patch)
treef1363a3f0562c50403a2f39498f89b45e6825903 /render/gles2
parent2d6d2bcef9ed8883bae25b0559d7703728f4a901 (diff)
Fix external shader
Diffstat (limited to 'render/gles2')
-rw-r--r--render/gles2/shaders.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render/gles2/shaders.c b/render/gles2/shaders.c
index c1db6e20..ff6fba9c 100644
--- a/render/gles2/shaders.c
+++ b/render/gles2/shaders.c
@@ -94,9 +94,9 @@ const GLchar fragment_src_rgbx[] =
const GLchar fragment_src_external[] =
"#extension GL_OES_EGL_image_external : require\n"
"precision mediump float;"
+"varying vec2 v_texcoord;"
"uniform samplerExternalOES texture0;"
-"varying vec2 v_uv;"
"void main() {"
-" vec4 col = texture2D(texture0, v_uv);"
+" vec4 col = texture2D(texture0, v_texcoord);"
" gl_FragColor = vec4(col.rgb, col.a);"
"}";