From ae286aef86205bf3bfab33eb3f859cbb9ad8c6f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 22 Oct 2019 22:07:34 +0200 Subject: [PATCH] Vulkan+SoftwareRenderer: Fix screen rotation on Android. (Missed this because software rendering is normally disabled on Android) --- GPU/Software/SoftGpu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GPU/Software/SoftGpu.cpp b/GPU/Software/SoftGpu.cpp index f7e29dd665..76f4a8d7b9 100644 --- a/GPU/Software/SoftGpu.cpp +++ b/GPU/Software/SoftGpu.cpp @@ -15,6 +15,8 @@ // Official git repository and contact information can be found at // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. +#include "base/display.h" + #include "GPU/GPUState.h" #include "GPU/ge_constants.h" #include "GPU/Common/TextureDecoder.h" @@ -285,7 +287,7 @@ void SoftGPU::CopyToCurrentFboFromDisplayRam(int srcwidth, int srcheight) { }; Draw::VsTexColUB ub{}; - memcpy(ub.WorldViewProj, identity4x4, sizeof(float) * 16); + memcpy(ub.WorldViewProj, g_display_rot_matrix.m, sizeof(float) * 16); draw_->BindPipeline(texColor); draw_->UpdateDynamicUniformBuffer(&ub, sizeof(ub)); draw_->BindVertexBuffers(0, 1, &vdata, nullptr);