mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-08 04:25:37 +00:00
GPU: Fix prerotated presenting with OpenGL
This commit is contained in:
parent
995a34e0e3
commit
3a44c3a758
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user