swrast: flush pending rendering before unmapping buffers

This commit is contained in:
Brian Paul 2012-01-16 10:55:10 -07:00
parent 33257803d9
commit fc9f74839d

View 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 );
}