From: Brian Paul Date: Mon, 16 Jan 2012 17:55:10 +0000 (-0700) Subject: swrast: flush pending rendering before unmapping buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc9f74839d50ab5480ae657524cf2ddebf55d451;p=mesa.git swrast: flush pending rendering before unmapping buffers --- diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index 06824ea2ce9..817f1376461 100644 --- a/src/mesa/swrast/s_context.c +++ b/src/mesa/swrast/s_context.c @@ -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 ); }