Implement drm (egl) buffer attaching

This commit is contained in:
nyorain 2017-08-09 21:25:34 +02:00
parent 750d0ad458
commit 67369173aa
19 changed files with 308 additions and 23 deletions

View file

@ -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);"
"}";