summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_cb_flush.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-08-10 15:31:26 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2007-08-10 15:35:48 +0100
commit47fc2c4349746997704a7f81dffadd22363e0ff1 (patch)
treeda53b452a03ad6909a1b9b95db565fa7a73a511e /src/mesa/state_tracker/st_cb_flush.c
parent12e3bb1a65bbff82dabc64110249c57a711501c1 (diff)
Lift common winsys functions into pipe's new p_winsys.
Diffstat (limited to 'src/mesa/state_tracker/st_cb_flush.c')
-rw-r--r--src/mesa/state_tracker/st_cb_flush.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_cb_flush.c b/src/mesa/state_tracker/st_cb_flush.c
index a6a8f8d90f..41f21c361c 100644
--- a/src/mesa/state_tracker/st_cb_flush.c
+++ b/src/mesa/state_tracker/st_cb_flush.c
@@ -37,6 +37,7 @@
#include "st_cb_flush.h"
#include "pipe/p_context.h"
#include "pipe/p_defines.h"
+#include "pipe/p_winsys.h"
static void st_flush(GLcontext *ctx)
@@ -60,7 +61,7 @@ static void st_flush(GLcontext *ctx)
if (st->flags.frontbuffer_dirty) {
/* Hook for copying "fake" frontbuffer if necessary:
*/
- st->pipe->flush_frontbuffer( st->pipe );
+ st->pipe->winsys->flush_frontbuffer( st->pipe->winsys );
st->flags.frontbuffer_dirty = 0;
}
}
@@ -70,7 +71,7 @@ static void st_finish(GLcontext *ctx)
struct st_context *st = ctx->st;
st_flush( ctx );
- st->pipe->wait_idle( st->pipe );
+ st->pipe->winsys->wait_idle( st->pipe->winsys );
}