diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-08-12 09:19:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-12 09:19:51 -0400 |
commit | 5ba7560782b222e480c8a7e0c4f48d6839bd6830 (patch) | |
tree | f1363a3f0562c50403a2f39498f89b45e6825903 /render/gles2/shaders.c | |
parent | 2d6d2bcef9ed8883bae25b0559d7703728f4a901 (diff) | |
parent | f066ff6d02992295c966bbd7a0200f820e4492ed (diff) |
Merge pull request #77 from nyorain/external_shader_fix
Fix external shader
Diffstat (limited to 'render/gles2/shaders.c')
-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);" "}"; |