From: Brian Paul Date: Mon, 16 Jan 2012 17:55:10 +0000 (-0700) Subject: swrast: flush pending rendering before unmapping buffers X-Git-Tag: 062012170305~1955 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc9f74839d50ab5480ae657524cf2ddebf55d451;p=profile%2Fivi%2Fmesa.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 06824ea..817f137 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 ); }