From f07e4839b17c29513c792942d3e91c83a35a0f14 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 8 Jun 2021 20:51:09 +1000 Subject: [PATCH] [client] egl: fix dmabuf support --- client/renderers/EGL/texture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/renderers/EGL/texture.c b/client/renderers/EGL/texture.c index 7c95caa5..233f1953 100644 --- a/client/renderers/EGL/texture.c +++ b/client/renderers/EGL/texture.c @@ -576,7 +576,8 @@ enum EGL_TexStatus egl_texture_bind(EGL_Texture * texture) sd = atomic_fetch_add_explicit(&texture->state.d, 1, memory_order_release) + 1; - tex = texture->tex[sd % BUFFER_COUNT]; + if (!texture->dma) + tex = texture->tex[sd % BUFFER_COUNT]; } glActiveTexture(GL_TEXTURE0);