summaryrefslogtreecommitdiffstats
path: root/src/glx/dri2_glx.c
diff options
context:
space:
mode:
authorJesse Barnes <[email protected]>2010-04-19 09:56:49 -0700
committerJesse Barnes <[email protected]>2010-04-19 09:56:49 -0700
commit64644ec3b21884d4a974fa29087fa98c4ed9e112 (patch)
treed5752ba82220f9ebe5d61d7e98ecc27f331aa65c /src/glx/dri2_glx.c
parent4df3e76949e1ca7b29f844ad9a715b442396a024 (diff)
parent385e2896ebf54ac0b016132fe513f21a5b67ba4f (diff)
Merge branch '7.8'
Diffstat (limited to 'src/glx/dri2_glx.c')
-rw-r--r--src/glx/dri2_glx.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index 06f3d8b71c0..d09d614741d 100644
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -185,7 +185,7 @@ dri2CreateDrawable(__GLXscreenConfigs * psc,
pdraw->base.drawable = drawable;
pdraw->base.psc = psc;
pdraw->bufferCount = 0;
- pdraw->swap_interval = 0;
+ pdraw->swap_interval = 1;
DRI2CreateDrawable(psc->dpy, xDrawable);
@@ -200,6 +200,11 @@ dri2CreateDrawable(__GLXscreenConfigs * psc,
return NULL;
}
+ /*
+ * Make sure server has the same swap interval we do for the new
+ * drawable.
+ */
+ DRI2SwapInterval(psc->dpy, xDrawable, pdraw->swap_interval);
return &pdraw->base;
}