mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-29 02:22:20 +00:00
Merge pull request #77 from nyorain/external_shader_fix
Fix external shader
This commit is contained in:
commit
5ba7560782
@ -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);"
|
||||
"}";
|
||||
|
Loading…
Reference in New Issue
Block a user