From dc064827bb195ea3054f537cc961b35123e94485 Mon Sep 17 00:00:00 2001 From: Lepton Wu Date: Fri, 4 Oct 2019 20:25:47 -0700 Subject: [PATCH] vrend: move debug_texure() location backward. So it can show the right texture id. Reviewed-by: Gert Wollny Signed-off-by: Lepton Wu --- src/vrend_renderer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index fe23846..4f5ff73 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -6405,11 +6405,11 @@ static int vrend_renderer_resource_allocate_texture(struct vrend_resource *gr, gr->target = GL_TEXTURE_2D_ARRAY; } - debug_texture(__func__, gr); - glGenTextures(1, &gr->id); glBindTexture(gr->target, gr->id); + debug_texture(__func__, gr); + if (image_oes) { if (epoxy_has_gl_extension("GL_OES_EGL_image_external")) { glEGLImageTargetTexture2DOES(gr->target, (GLeglImageOES) image_oes);