glx: Compile fix to let server compile with new and old mesa
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 <krh@bitplanet.net> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
db4f676f25
commit
018b177591
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue