summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-01-16 10:55:10 -0700
committerIan Romanick <[email protected]>2012-01-27 17:43:21 -0800
commit83eb5e43722cf0a6b3366ddf6a7ff3f8a44d4c23 (patch)
tree7c215c55e14cfc77362142c1cbc21d7f090293dc /src/mesa
parent5f6676b0ee6f847c1473670f665fcea03ff8f224 (diff)
swrast: flush pending rendering before unmapping buffers
(cherry picked from commit fc9f74839d50ab5480ae657524cf2ddebf55d451)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/swrast/s_context.c5
1 files changed, 3 insertions, 2 deletions
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 );
}