summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2/egl_dri2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2.c')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index 4c9ece351af..47de978404d 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -259,9 +259,15 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
return NULL;
}
- if (double_buffer)
+ if (double_buffer) {
surface_type &= ~EGL_PIXMAP_BIT;
+ if (dri2_dpy->swap_available) {
+ conf->base.MinSwapInterval = 0;
+ conf->base.MaxSwapInterval = 1000; /* XXX arbitrary value */
+ }
+ }
+
conf->base.SurfaceType |= surface_type;
return conf;