Mesa (master): glx: revert "Downgrade sRGB-ful fbconfigs"

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 28 09:50:03 UTC 2021


Module: Mesa
Branch: master
Commit: fc4085493765421e852a431ff33dfc86d057a606
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fc4085493765421e852a431ff33dfc86d057a606

Author: Tapani Pälli <tapani.palli at intel.com>
Date:   Wed Apr 28 08:42:35 2021 +0300

glx: revert "Downgrade sRGB-ful fbconfigs"

This reverts f0861c80 which causes regression on multiple apps that
require a sRGB capable visual.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4690
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10498>

---

 src/glx/dri_common.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c
index 6847fa60f7c..8fe8802bed7 100644
--- a/src/glx/dri_common.c
+++ b/src/glx/dri_common.c
@@ -237,17 +237,6 @@ driConfigEqual(const __DRIcoreExtension *core,
          }
          break;
 
-      case __DRI_ATTRIB_FRAMEBUFFER_SRGB_CAPABLE:
-         if (!scalarEqual(config, attrib, value)) {
-            static int warned;
-            if (!warned) {
-               DebugMessageF("Disabling server's sRGB support\n");
-               warned = 1;
-            }
-            config->sRGBCapable = 0;
-         }
-         break;
-
       default:
          if (!scalarEqual(config, attrib, value))
             return GL_FALSE;



More information about the mesa-commit mailing list