egl/x11: Remove duplicate call to dri2_x11_add_configs_for_visuals
authorBoyan Ding <boyan.j.ding@gmail.com>
Sat, 13 Jun 2015 07:33:20 +0000 (15:33 +0800)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 23 Jun 2015 17:54:27 +0000 (18:54 +0100)
The call to dri2_x11_add_configs_for_visuals (previously
dri2_add_configs_for_visuals) was moved downwards in commit f8c5b8a1,
but appeared again in its original position after its rename in
d019cd81. Remove it.

Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
src/egl/drivers/dri2/platform_x11.c

index 8a34bb19bd5d4fdb4150e75a722d22f9c5eeeae2..56c14288204503610e48c5f0626da7ab8c8114c6 100644 (file)
@@ -1271,11 +1271,6 @@ dri2_initialize_x11_dri2(_EGLDriver *drv, _EGLDisplay *disp)
 
    dri2_x11_setup_swap_interval(dri2_dpy);
 
-   if (dri2_dpy->conn) {
-      if (!dri2_x11_add_configs_for_visuals(dri2_dpy, disp))
-        goto cleanup_configs;
-   }
-
    disp->Extensions.KHR_image_pixmap = EGL_TRUE;
    disp->Extensions.NOK_swap_region = EGL_TRUE;
    disp->Extensions.NOK_texture_from_pixmap = EGL_TRUE;