瀏覽代碼

softpipe: simplify an assertion

tags/mesa_20090313
Brian Paul 16 年之前
父節點
當前提交
2473ded886
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/gallium/drivers/softpipe/sp_texture.c

+ 1
- 1
src/gallium/drivers/softpipe/sp_texture.c 查看文件

@@ -270,7 +270,7 @@ softpipe_tex_surface_release(struct pipe_screen *screen,
* needed post-processing to put them into hardware layout, this is
* where it would happen. For softpipe, nothing to do.
*/
assert ((*s)->texture);
assert(surf->texture);
if (--surf->refcount == 0) {
pipe_texture_reference(&surf->texture, NULL);
FREE(surf);

Loading…
取消
儲存