summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2010-04-23 11:18:29 +0200
committerMichel Dänzer <michel@daenzer.net>2010-04-23 11:18:29 +0200
commitff20543c815a14fddad1efaaef1610454a1924d4 (patch)
treef65f496edc940c7bbd5c56601ec003a653cfb0aa /src/glx
parent749a8825a00c841b677eabace88d8d3f2ad7af13 (diff)
parentc37e275e778e8c944e3dfad159b1eb94c601af60 (diff)
downloadexternal_mesa3d-ff20543c815a14fddad1efaaef1610454a1924d4.zip
external_mesa3d-ff20543c815a14fddad1efaaef1610454a1924d4.tar.gz
external_mesa3d-ff20543c815a14fddad1efaaef1610454a1924d4.tar.bz2
Merge branch '7.8'
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/dri2_glx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index 1faaf08..9347611 100644
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -225,12 +225,14 @@ dri2CreateDrawable(__GLXscreenConfigs * psc,
return NULL;
}
+#ifdef X_DRI2SwapInterval
/*
* Make sure server has the same swap interval we do for the new
* drawable.
*/
if (pdp->swapAvailable)
DRI2SwapInterval(psc->dpy, xDrawable, pdraw->swap_interval);
+#endif
return &pdraw->base;
}