Fix imgui being upside down on some backends.

Fixes #21761
This commit is contained in:
Henrik Rydgård committed 2026-06-01 10:53:41 +02:00
1 parent b164621606
commit 054a10d46b
4 files changed
+8 -18

No files matched your search

+2 -2
View File
@@ -1072,8 +1072,8 @@ void NativeFrame(GraphicsContext *graphicsContext) {
g_breakpoints.Frame();
// Apply the UIContext bounds as a 2D transformation matrix.
// NOTE: We compensate for the Y convention in the shaders, so we can use the same matrices in all backends.
Matrix4x4 ortho = ComputeOrthoMatrix(g_display.dp_xres, g_display.dp_yres, g_draw->GetDeviceCaps().coordConvention, false);
// NOTE: We compensate for the Y and Z conventions in the shaders, so we can use the same matrices in all backends.
Matrix4x4 ortho = ComputeOrthoMatrix(g_display.dp_xres, g_display.dp_yres, g_draw->GetDeviceCaps().coordConvention);
// Can be overridden by sceDisplay which may pass true for the second argument.
g_frameTiming.ComputePresentMode(g_draw, false);