[Bf-blender-cvs] [c02ba3653ae] soc-2019-openxr: Color transforms were fixed in Windows MR -> disable our workaround

Julian Eisel noreply at git.blender.org
Tue Mar 10 18:23:54 CET 2020


Commit: c02ba3653aeea5411d4a69434abe450f5a327ca9
Author: Julian Eisel
Date:   Fri Nov 29 12:40:55 2019 +0100
Branches: soc-2019-openxr
https://developer.blender.org/rBc02ba3653aeea5411d4a69434abe450f5a327ca9

Color transforms were fixed in Windows MR -> disable our workaround

===================================================================

M	intern/ghost/intern/GHOST_XrSession.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_XrSession.cpp b/intern/ghost/intern/GHOST_XrSession.cpp
index 818e9322ea7..1e2b8c0bc9d 100644
--- a/intern/ghost/intern/GHOST_XrSession.cpp
+++ b/intern/ghost/intern/GHOST_XrSession.cpp
@@ -362,11 +362,10 @@ static void ghost_xr_draw_view_info_from_view(const XrView &view, GHOST_XrDrawVi
 
 static bool ghost_xr_draw_view_expects_srgb_buffer(const GHOST_XrContext *context)
 {
-  /* WMR seems to be faulty and doesn't do OETF transform correctly. So expect a SRGB buffer to
+  /* Monado seems to be faulty and doesn't do OETF transform correctly. So expect a SRGB buffer to
    * compensate. You get way too dark rendering without this, it's pretty obvious (even in the
    * default startup scene). */
-  return (context->getOpenXRRuntimeID() == OPENXR_RUNTIME_WMR) ||
-         (context->getOpenXRRuntimeID() == OPENXR_RUNTIME_MONADO);
+  return (context->getOpenXRRuntimeID() == OPENXR_RUNTIME_MONADO);
 }
 
 void GHOST_XrSession::drawView(GHOST_XrSwapchain &swapchain,



More information about the Bf-blender-cvs mailing list