[client] egl: fix dmabuf support

This commit is contained in:
Geoffrey McRae 2021-06-08 20:51:09 +10:00
parent 964403b4f8
commit f07e4839b1

View File

@ -576,7 +576,8 @@ enum EGL_TexStatus egl_texture_bind(EGL_Texture * texture)
sd = atomic_fetch_add_explicit(&texture->state.d, 1, sd = atomic_fetch_add_explicit(&texture->state.d, 1,
memory_order_release) + 1; memory_order_release) + 1;
tex = texture->tex[sd % BUFFER_COUNT]; if (!texture->dma)
tex = texture->tex[sd % BUFFER_COUNT];
} }
glActiveTexture(GL_TEXTURE0); glActiveTexture(GL_TEXTURE0);