vrend: move debug_texure() location backward.

So it can show the right texture id.

Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Lepton Wu <lepton@chromium.org>
macos/master
Lepton Wu 5 years ago
parent 2abeb1802e
commit dc064827bb
  1. 4
      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);

Loading…
Cancel
Save