diff options
author | nyorain <nyorain@gmail.com> | 2017-08-12 14:48:24 +0200 |
---|---|---|
committer | nyorain <nyorain@gmail.com> | 2017-08-12 14:48:24 +0200 |
commit | f066ff6d02992295c966bbd7a0200f820e4492ed (patch) | |
tree | f1363a3f0562c50403a2f39498f89b45e6825903 | |
parent | 2d6d2bcef9ed8883bae25b0559d7703728f4a901 (diff) |
Fix external shader
-rw-r--r-- | render/gles2/shaders.c | 4 |
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);" "}"; |