call Driver.Flush() in _mesa_notifySwapBuffers()
authorBrian <brian.paul@tungstengraphics.com>
Fri, 19 Oct 2007 16:12:00 +0000 (10:12 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 19 Oct 2007 16:12:00 +0000 (10:12 -0600)
src/mesa/main/context.c

index 00e4c8328e559edc2047de55d091f5a9ca1332f0..e8335e19cacc28bbf29da8e16ee1e15de0db75cc 100644 (file)
@@ -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);
+   }
 }