From 57f0e65d5186412835f282af59141626e4a87a00 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 23 Jul 2014 16:42:46 +0100 Subject: sna/dri2: Compile fix for old xorg/dri2 We have to do conditional compilation as we touch structure members that may not exist in older Xserver headers. Signed-off-by: Chris Wilson --- src/sna/sna_dri2.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sna/sna_dri2.c') diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c index e4f1c842..9388992d 100644 --- a/src/sna/sna_dri2.c +++ b/src/sna/sna_dri2.c @@ -3253,11 +3253,13 @@ bool sna_dri2_open(struct sna *sna, ScreenPtr screen) driverNames[1] = info.driverName; #endif +#if DRI2INFOREC_VERSION >= 6 if (xorg_can_triple_buffer(sna)) { info.version = 6; info.SwapLimitValidate = sna_dri2_swap_limit_validate; info.ReuseBufferNotify = sna_dri2_reuse_buffer; } +#endif #if USE_ASYNC_SWAP info.version = 10; -- cgit v1.2.3