From 200e2f26c43eed93c88b4e47dce0d0d43fba74dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 27 Nov 2022 22:58:34 +0100 Subject: [PATCH] OffsetY fix for non-vulkan backends --- GPU/Common/PresentationCommon.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/GPU/Common/PresentationCommon.cpp b/GPU/Common/PresentationCommon.cpp index 40c13beaae..0c783b4050 100644 --- a/GPU/Common/PresentationCommon.cpp +++ b/GPU/Common/PresentationCommon.cpp @@ -79,9 +79,8 @@ void CenterDisplayOutputRect(FRect *rc, float origW, float origH, const FRect &f float offsetX = g_Config.fDisplayOffsetX; float offsetY = g_Config.fDisplayOffsetY; - // Have to invert Y for GL - if (GetGPUBackend() == GPUBackend::OPENGL) { - offsetY = offsetY * -1.0f; + if (GetGPUBackend() != GPUBackend::VULKAN) { + offsetY = 1.0 - offsetY; } float scale = g_Config.fDisplayScale;