mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
util: fix incorrect assertion
Check that the dest surface/format is renderable.
This commit is contained in:
parent
f36d012191
commit
9de26ccbcc
1 changed files with 1 additions and 1 deletions
|
|
@ -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) &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue