mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 12:18:35 +01:00
softgpu: Flip vertically in the Vulkan backend.
This commit is contained in:
1 parent
f3d113a777
commit
caea1da99a
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user