From 487f5c665d67f85c3a14eac1e7a5c2bc0a79722b Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 9 Apr 2013 14:09:50 +0200 Subject: [PATCH] Fix initialisation of swap_interval --- src/egl/drivers/dri2/platform_x11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index da61cfc..e9ca241 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -1162,6 +1162,8 @@ dri2_initialize_x11_dri2(_EGLDriver *drv, _EGLDisplay *disp) if (!dri2_create_screen(disp)) goto cleanup_fd; + dri2_setup_swap_interval(dri2_dpy); + if (dri2_dpy->conn) { if (!dri2_add_configs_for_visuals(dri2_dpy, disp)) goto cleanup_configs; @@ -1181,8 +1183,6 @@ dri2_initialize_x11_dri2(_EGLDriver *drv, _EGLDisplay *disp) disp->VersionMajor = 1; disp->VersionMinor = 4; - dri2_setup_swap_interval(dri2_dpy); - return EGL_TRUE; cleanup_configs: -- 1.7.10.4