瀏覽代碼

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.
rsjtdrjgfuzkfg 2 年之前
父節點
當前提交
17a957e214
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      modules/openxr/extensions/openxr_opengl_extension.cpp

+ 0 - 1
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<int64_t> &p_usable_swap_chains) {
-	p_usable_swap_chains.push_back(GL_SRGB8_ALPHA8);
 	p_usable_swap_chains.push_back(GL_RGBA8);
 }