浏览代码

intel: Use the new "ctx" local variable I just added some more.

Reviewed-and-tested-by: Ian Romanick <ian.d.romanick@intel.com>
tags/mesa-9.2-rc1
Eric Anholt 12 年前
父节点
当前提交
c0674fa5cd
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/mesa/drivers/dri/intel/intel_context.c

+ 2
- 2
src/mesa/drivers/dri/intel/intel_context.c 查看文件

@@ -991,7 +991,7 @@ intelMakeCurrent(__DRIcontext * driContextPriv,
}

intel_prepare_render(intel);
_mesa_make_current(&intel->ctx, fb, readFb);
_mesa_make_current(ctx, fb, readFb);

intel_gles3_srgb_workaround(intel, ctx->WinSysDrawBuffer);
intel_gles3_srgb_workaround(intel, ctx->WinSysReadBuffer);
@@ -1000,7 +1000,7 @@ intelMakeCurrent(__DRIcontext * driContextPriv,
* is NULL at that point. We can't call _mesa_makecurrent()
* first, since we need the buffer size for the initial
* viewport. So just call intel_draw_buffer() again here. */
intel_draw_buffer(&intel->ctx);
intel_draw_buffer(ctx);
}
else {
_mesa_make_current(NULL, NULL, NULL);

正在加载...
取消
保存