Mesa (master): mesa/main: protect driver.finish with FLUSH_CURRENT

Keith Whitwell keithw at kemper.freedesktop.org
Tue Apr 28 17:17:40 UTC 2009


Module: Mesa
Branch: master
Commit: c0bff53334194f9d1aada23510123f1591d5512e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c0bff53334194f9d1aada23510123f1591d5512e

Author: Keith Whitwell <keithw at vmware.com>
Date:   Tue Apr 28 17:49:50 2009 +0100

mesa/main: protect driver.finish with FLUSH_CURRENT

Already doing this for driver.flush()

---

 src/mesa/main/context.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 4469c8e..016284d 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -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);
    }




More information about the mesa-commit mailing list