mesa/main: protect driver.finish with FLUSH_CURRENT
authorKeith Whitwell <keithw@vmware.com>
Tue, 28 Apr 2009 16:49:50 +0000 (17:49 +0100)
committerKeith Whitwell <keithw@vmware.com>
Tue, 28 Apr 2009 17:15:18 +0000 (18:15 +0100)
Already doing this for driver.flush()

src/mesa/main/context.c

index 4469c8e1fa132fb8f13b9454b12115755675c8dd..016284de9aa2c272ac9c181bfa9a2167e11bd59d 100644 (file)
@@ -1497,6 +1497,7 @@ _mesa_Finish(void)
 {
    GET_CURRENT_CONTEXT(ctx);
    ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
+   FLUSH_CURRENT( ctx, 0 );
    if (ctx->Driver.Finish) {
       ctx->Driver.Finish(ctx);
    }