瀏覽代碼

util: fix incorrect assertion

Check that the dest surface/format is renderable.
tags/mesa_7_5_1
Brian Paul 16 年之前
父節點
當前提交
9676ed27fe
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/gallium/auxiliary/util/u_blit.c

+ 1
- 1
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) &&

Loading…
取消
儲存