From 464fc446e3f8d75c61730e50e6fc7057afe64b06 Mon Sep 17 00:00:00 2001 From: Lubos Date: Wed, 28 Sep 2022 00:10:30 +0200 Subject: [PATCH] OpenXR - Fix FBO colors on Pico --- Common/VR/VRFramebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/VR/VRFramebuffer.cpp b/Common/VR/VRFramebuffer.cpp index 70f2ad02aa..9dab8411e3 100644 --- a/Common/VR/VRFramebuffer.cpp +++ b/Common/VR/VRFramebuffer.cpp @@ -76,7 +76,7 @@ bool ovrFramebuffer_Create(XrSession session, ovrFramebuffer* frameBuffer, int w frameBuffer->DepthSwapChain.Height = swapChainCreateInfo.height; // Create the color swapchain. - swapChainCreateInfo.format = GL_RGBA8; + swapChainCreateInfo.format = GL_SRGB8_ALPHA8; swapChainCreateInfo.usageFlags = XR_SWAPCHAIN_USAGE_COLOR_ATTACHMENT_BIT; OXR(xrCreateSwapchain(session, &swapChainCreateInfo, &frameBuffer->ColorSwapChain.Handle)); OXR(xrEnumerateSwapchainImages(frameBuffer->ColorSwapChain.Handle, 0, &frameBuffer->TextureSwapChainLength, NULL));