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 06824ea2ce97bf04991a7acf0599377c9f3c697e..817f1376461409c7c4ba841f752b26fffcae3e7b 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 );
 }