softgpu: Flip vertically in the Vulkan backend.

This commit is contained in:
Unknown W. Brackets committed 2016-03-21 07:17:38 -07:00
1 parent f3d113a777
commit caea1da99a
1 file changed
+4
+4
View File
@@ -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