mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Implement drm (egl) buffer attaching
This commit is contained in:
parent
750d0ad458
commit
67369173aa
19 changed files with 308 additions and 23 deletions
|
|
@ -90,3 +90,13 @@ const GLchar fragment_src_rgbx[] =
|
|||
" gl_FragColor.rgb = alpha * texture2D(tex, v_texcoord).rgb;"
|
||||
" gl_FragColor.a = alpha;"
|
||||
"}";
|
||||
|
||||
const GLchar fragment_src_external[] =
|
||||
"#extension GL_OES_EGL_image_external : require\n"
|
||||
"precision mediump float;"
|
||||
"uniform samplerExternalOES texture0;"
|
||||
"varying vec2 v_uv;"
|
||||
"void main() {"
|
||||
" vec4 col = texture2D(texture0, v_uv);"
|
||||
" gl_FragColor = vec4(col.rgb, col.a);"
|
||||
"}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue