From f066ff6d02992295c966bbd7a0200f820e4492ed Mon Sep 17 00:00:00 2001 From: nyorain Date: Sat, 12 Aug 2017 14:48:24 +0200 Subject: Fix external shader --- render/gles2/shaders.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'render/gles2/shaders.c') 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);" "}"; -- cgit v1.2.3