From 17a957e214bb926ebc1e502228d651fe2bf562e6 Mon Sep 17 00:00:00 2001 From: rsjtdrjgfuzkfg Date: Wed, 11 Jan 2023 15:20:36 +0100 Subject: OpenXR: Do not use SRGB swapchains with OpenGL This commit removes SRGB swapchain options for use with OpenGL, to avoid the hardware doing an additional SRGB conversion and thus causing colors to differ from other rendering paths. --- modules/openxr/extensions/openxr_opengl_extension.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'modules/openxr/extensions') diff --git a/modules/openxr/extensions/openxr_opengl_extension.cpp b/modules/openxr/extensions/openxr_opengl_extension.cpp index cd371b9ed9..6ce8f0805f 100644 --- a/modules/openxr/extensions/openxr_opengl_extension.cpp +++ b/modules/openxr/extensions/openxr_opengl_extension.cpp @@ -157,7 +157,6 @@ void *OpenXROpenGLExtension::set_session_create_and_get_next_pointer(void *p_nex } void OpenXROpenGLExtension::get_usable_swapchain_formats(Vector &p_usable_swap_chains) { - p_usable_swap_chains.push_back(GL_SRGB8_ALPHA8); p_usable_swap_chains.push_back(GL_RGBA8); } -- cgit v1.2.3