GPU: Fix prerotated presenting with OpenGL

This commit is contained in:
Stenzek 2025-02-13 00:53:29 +10:00
parent 995a34e0e3
commit 3a44c3a758
No known key found for this signature in database

View File

@ -726,8 +726,8 @@ void GPUPresenter::DrawScreenQuad(const GSVector4i rect, const GSVector4 uv_rect
WindowInfo::PreRotation prerotation) WindowInfo::PreRotation prerotation)
{ {
const GSVector4i real_rect = GPUSwapChain::PreRotateClipRect(prerotation, target_size, rect); const GSVector4i real_rect = GPUSwapChain::PreRotateClipRect(prerotation, target_size, rect);
g_gpu_device->SetScissor(g_gpu_device->UsesLowerLeftOrigin() ? GPUDevice::FlipToLowerLeft(real_rect, target_size.y) : g_gpu_device->SetScissor(
real_rect); g_gpu_device->UsesLowerLeftOrigin() ? GPUDevice::FlipToLowerLeft(real_rect, final_target_size.y) : real_rect);
GPUBackend::ScreenVertex* vertices; GPUBackend::ScreenVertex* vertices;
u32 space; u32 space;