summaryrefslogtreecommitdiff
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-19 10:12:00 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-19 10:12:00 -0600
commit96b06ac557b721f0b1b9cc05b1d2b3a289701ae5 (patch)
tree2daec4ccfc406c62c177463321e9627024db4ffb /src/mesa/main/context.c
parent2b2f761e2b0dc160793be2f48e811d2d455e1e22 (diff)
call Driver.Flush() in _mesa_notifySwapBuffers()
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 00e4c8328e..e8335e19ca 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);
+ }
}