From caea1da99aba3935e8bbcb27237f0345677bd190 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 21 Mar 2016 07:09:33 -0700 Subject: [PATCH] softgpu: Flip vertically in the Vulkan backend. --- GPU/Software/SoftGpu.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GPU/Software/SoftGpu.cpp b/GPU/Software/SoftGpu.cpp index d83fb02314..bad6c43826 100644 --- a/GPU/Software/SoftGpu.cpp +++ b/GPU/Software/SoftGpu.cpp @@ -191,6 +191,10 @@ void SoftGPU::CopyToCurrentFboFromDisplayRam(int srcwidth, int srcheight) float v0 = 1.0f; float v1 = 0.0f; + if (GetGPUBackend() == GPUBackend::VULKAN) { + std::swap(v0, v1); + } + const Vertex verts[4] = { {x, y, 0, u0, v0, 0xFFFFFFFF}, // TL {x, y2, 0, u0, v1, 0xFFFFFFFF}, // BL