From 018b177591c9fade6d065e31858cc6e054d33eff Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Wed, 24 Feb 2010 10:37:26 -0500 Subject: glx: Compile fix to let server compile with new and old mesa MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We broke the __DRI2_FLUSH API since it was never released, but since it's taking a little longer than expected to get the X server side of the changes ready, fix things up so it compiles. Signed-off-by: Kristian Høgsberg Reviewed-by: Keith Packard Signed-off-by: Keith Packard --- glx/glxdri2.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'glx') diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 0f998de75..edd29b0e1 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -217,8 +217,15 @@ __glXDRIdrawableSwapBuffers(ClientPtr client, __GLXdrawable *drawable) __GLXDRIscreen *screen = priv->screen; CARD64 unused; +#if __DRI2_FLUSH_VERSION >= 3 + if (screen->flush) { + (*screen->flush->flush)(priv->driDrawable); + (*screen->flush->invalidate)(priv->driDrawable); + } +#else if (screen->flush) (*screen->flush->flushInvalidate)(priv->driDrawable); +#endif if (DRI2SwapBuffers(client, drawable->pDraw, 0, 0, 0, &unused, __glXdriSwapEvent, drawable->pDraw) != Success) -- cgit v1.2.3