diff options
author | Brian Paul <[email protected]> | 2012-01-16 10:55:10 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-01-24 14:12:12 -0700 |
commit | fc9f74839d50ab5480ae657524cf2ddebf55d451 (patch) | |
tree | 8502d8aba32a82cdefcfebb3da90ad23c3493f26 | |
parent | 33257803d9083643ea9709c127933d5a2c4f1960 (diff) |
swrast: flush pending rendering before unmapping buffers
-rw-r--r-- | src/mesa/swrast/s_context.c | 5 |
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 ); } |