From 9de26ccbcc2123b658c1b01c079b010473bc6da6 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 6 Aug 2009 14:58:01 -0600 Subject: [PATCH] util: fix incorrect assertion Check that the dest surface/format is renderable. --- src/gallium/auxiliary/util/u_blit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_blit.c b/src/gallium/auxiliary/util/u_blit.c index ebf3f144b5b..cda6dbd46d7 100644 --- a/src/gallium/auxiliary/util/u_blit.c +++ b/src/gallium/auxiliary/util/u_blit.c @@ -326,7 +326,7 @@ util_blit_pixels(struct blit_state *ctx, assert(screen->is_format_supported(screen, src->format, PIPE_TEXTURE_2D, PIPE_TEXTURE_USAGE_SAMPLER, 0)); assert(screen->is_format_supported(screen, dst->format, PIPE_TEXTURE_2D, - PIPE_TEXTURE_USAGE_SAMPLER, 0)); + PIPE_TEXTURE_USAGE_RENDER_TARGET, 0)); /* do the regions overlap? */ overlap = util_same_surface(src, dst) && -- 2.30.2