summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-08-06 14:58:01 -0600
committerBrian Paul <[email protected]>2009-08-06 14:58:06 -0600
commit9676ed27fe1f59956779ca4a612929e0cf61e3a3 (patch)
treeb531d8159f47e46068c4b2b6c0e29a43eec25941 /src/gallium
parent98f00e8eb90b2b46fe72ffb0aea6cd516cf47497 (diff)
util: fix incorrect assertion
Check that the dest surface/format is renderable.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/util/u_blit.c2
1 files changed, 1 insertions, 1 deletions
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) &&