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@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10498>
This commit is contained in:
Tapani Pälli
2021-04-28 08:42:35 +03:00
committed by Marge Bot
parent 79e4451430
commit fc40854937
-11
View File
@@ -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;