浏览代码

gallium: added some assertions to st_render_texture() to check surface format

Make sure we can really render to the texture surface given its format.
tags/mesa_20090313
Brian Paul 17 年前
父节点
当前提交
dd9dc7df80
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/mesa/state_tracker/st_cb_fbo.c

+ 2
- 0
src/mesa/state_tracker/st_cb_fbo.c 查看文件

@@ -370,6 +370,8 @@ st_render_texture(GLcontext *ctx,
att->TextureLevel,
att->Zoffset);
assert(strb->surface);
assert(screen->is_format_supported(screen, strb->surface->format, PIPE_TEXTURE));
assert(screen->is_format_supported(screen, strb->surface->format, PIPE_SURFACE));

init_renderbuffer_bits(strb, pt->format);


正在加载...
取消
保存