OSDN Git Service

Revert "egl: Puts RGBA visuals in the second config selection group."
authorHal Gentz <zegentzy@protonmail.com>
Fri, 18 Oct 2019 07:03:33 +0000 (01:03 -0600)
committerAdam Jackson <ajax@nwnk.net>
Fri, 18 Oct 2019 18:41:51 +0000 (18:41 +0000)
This reverts commit a800d16e4f1589e41e53edf8e8a771a33bb46a6a.

src/egl/drivers/dri2/platform_x11.c

index b3ed7b9..414d5f7 100644 (file)
@@ -831,17 +831,9 @@ dri2_x11_add_configs_for_visuals(struct dri2_egl_display *dri2_dpy,
             dri2_conf = dri2_add_config(disp, config, config_count + 1,
                                         surface_type, config_attrs,
                                         rgba_shifts, rgba_sizes);
-            if (dri2_conf) {
+            if (dri2_conf)
                if (dri2_conf->base.ConfigID == config_count + 1)
                   config_count++;
-
-               /* Put RGBA visuals in the second ConfigSelectGroup so that they
-                * have lower priority. Applications probably don't want the
-                * compositor to alpha-blend their windows.
-                */
-               if (d.data->depth != 24 && d.data->depth != 30)
-                  ++dri2_conf->base.ConfigSelectGroup;
-            }
          }
       }