From: Brian Date: Fri, 19 Oct 2007 16:12:00 +0000 (-0600) Subject: call Driver.Flush() in _mesa_notifySwapBuffers() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=96b06ac557b721f0b1b9cc05b1d2b3a289701ae5;p=mesa.git call Driver.Flush() in _mesa_notifySwapBuffers() --- diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 00e4c8328e5..e8335e19cac 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -163,9 +163,11 @@ free_shared_state( GLcontext *ctx, struct gl_shared_state *ss ); * We have to finish any pending rendering. */ void -_mesa_notifySwapBuffers(__GLcontext *gc) +_mesa_notifySwapBuffers(__GLcontext *ctx) { - FLUSH_VERTICES( gc, 0 ); + if (ctx->Driver.Flush) { + ctx->Driver.Flush(ctx); + } }