libobs-opengl: Enable imported dmabufs for rendering

For now just tag all imported images with GS_RENDER, this may not work
for some images that were produced by some hardware other than the GPU
render engines. But since we don't import VA-API decoded frames we
probably won't run into this. And we need this to render into VA-API
frames destined for encoding.
This commit is contained in:
Kurt Kartaltepe 2023-02-06 21:13:59 -08:00 committed by Ryan Foster
parent 02c90207fc
commit 34950f7fb2

View file

@ -186,7 +186,7 @@ struct gs_texture *gl_egl_create_texture_from_eglimage(
struct gs_texture *texture = NULL;
texture = gs_texture_create(width, height, color_format, 1, NULL,
GS_GL_DUMMYTEX);
GS_GL_DUMMYTEX | GS_RENDER_TARGET);
const GLuint gltex = *(GLuint *)gs_texture_get_obj(texture);
gl_bind_texture(GL_TEXTURE_2D, gltex);