projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98f00e8
)
util: fix incorrect assertion
author
Brian Paul
<brianp@vmware.com>
Thu, 6 Aug 2009 20:58:01 +0000
(14:58 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 6 Aug 2009 20:58:06 +0000
(14:58 -0600)
Check that the dest surface/format is renderable.
src/gallium/auxiliary/util/u_blit.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_blit.c
b/src/gallium/auxiliary/util/u_blit.c
index ebf3f144b5b78a074e9b90b0a6633cd7904d6094..cda6dbd46d76d06bae88e45ba79ec9c66bb6c993 100644
(file)
--- 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) &&