From 0060a14fa78f9c5a7d860aa2b0946e3613af7d65 Mon Sep 17 00:00:00 2001 From: Lubos Date: Fri, 2 Dec 2022 20:48:35 +0100 Subject: [PATCH] OpenXR - Adjust the render resolution for VR --- GPU/Common/PresentationCommon.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GPU/Common/PresentationCommon.cpp b/GPU/Common/PresentationCommon.cpp index 5980bbb95e..5e495c44bd 100644 --- a/GPU/Common/PresentationCommon.cpp +++ b/GPU/Common/PresentationCommon.cpp @@ -914,7 +914,10 @@ void PresentationCommon::CalculateRenderResolution(int *width, int *height, int } } - if (g_Config.IsPortrait()) { + if (IsVREnabled()) { + *width = 480 * zoom; + *height = 480 * zoom; + } else if (g_Config.IsPortrait()) { *width = 272 * zoom; *height = 480 * zoom; } else {