intel: Use the new "ctx" local variable I just added some more.
authorEric Anholt <eric@anholt.net>
Fri, 22 Feb 2013 19:46:19 +0000 (11:46 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 1 Mar 2013 20:10:22 +0000 (12:10 -0800)
Reviewed-and-tested-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/intel/intel_context.c

index 653bf47435e8f4dd3ec673d01c4da4e1780e0a59..435f0974445739c9aefa2db0ac5ab6c96ae610b8 100644 (file)
@@ -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);