From ea1904b3f3ec4e73cfab92accc5de5416506366e Mon Sep 17 00:00:00 2001 From: Ryan Neph Date: Fri, 11 Jun 2021 13:48:35 -0700 Subject: [PATCH] vrend: only log when a texture view is actually created Signed-off-by: Ryan Neph Reviewed-by: Gert Wollny --- src/vrend_renderer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 9cf1bea..8718fd9 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -1869,16 +1869,16 @@ int vrend_create_surface(struct vrend_context *ctx, int first_layer = surf->val1 & 0xffff; int last_layer = (surf->val1 >> 16) & 0xffff; - VREND_DEBUG(dbg_tex, ctx, "Create texture view from %s for %s\n", - util_format_name(res->base.format), - util_format_name(surf->format)); - if ((first_layer != last_layer && (first_layer != 0 || (last_layer != (int)util_max_layer(&res->base, surf->val0)))) || surf->format != res->base.format) { GLenum target = res->target; GLenum internalformat = tex_conv_table[format].internalformat; + VREND_DEBUG(dbg_tex, ctx, "Create texture view from %s for %s\n", + util_format_name(res->base.format), + util_format_name(surf->format)); + glGenTextures(1, &surf->id); if (vrend_state.use_gles) { if (target == GL_TEXTURE_RECTANGLE_NV ||