VR: Fix too dark rendering on SteamVR

Apply the sRGB transform workaround we already apply for Monado (and used
to apply for Windows Mixed Reality).
This commit is contained in:
Julian Eisel 2020-06-12 12:06:26 +02:00
parent f12fe3c23e
commit a809631ff2
1 changed files with 2 additions and 1 deletions

View File

@ -380,7 +380,8 @@ static bool ghost_xr_draw_view_expects_srgb_buffer(const GHOST_XrContext *contex
/* 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_MONADO);
GHOST_TXrOpenXRRuntimeID runtime_id = context->getOpenXRRuntimeID();
return (runtime_id == OPENXR_RUNTIME_MONADO) || (runtime_id == OPENXR_RUNTIME_STEAMVR);
}
void GHOST_XrSession::drawView(GHOST_XrSwapchain &swapchain,