swrast: flush pending rendering before unmapping buffers
authorBrian Paul <brianp@vmware.com>
Mon, 16 Jan 2012 17:55:10 +0000 (10:55 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 24 Jan 2012 21:12:12 +0000 (14:12 -0700)
src/mesa/swrast/s_context.c

index 06824ea..817f137 100644 (file)
@@ -872,10 +872,11 @@ void
 _swrast_render_finish( struct gl_context *ctx )
 {
    SWcontext *swrast = SWRAST_CONTEXT(ctx);
-   if (swrast->Driver.SpanRenderFinish)
-      swrast->Driver.SpanRenderFinish( ctx );
 
    _swrast_flush(ctx);
+
+   if (swrast->Driver.SpanRenderFinish)
+      swrast->Driver.SpanRenderFinish( ctx );
 }