From 4a47481e7aa542785b3e2bc68948736e6f97df46 Mon Sep 17 00:00:00 2001 From: Emmanuel Hansen Date: Fri, 23 Aug 2024 23:11:25 +0000 Subject: [PATCH] bionic - fix rotation --- src/LibRyujinx/LibRyujinx.Graphics.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/LibRyujinx/LibRyujinx.Graphics.cs b/src/LibRyujinx/LibRyujinx.Graphics.cs index a3ca9d516..a194f2cd8 100644 --- a/src/LibRyujinx/LibRyujinx.Graphics.cs +++ b/src/LibRyujinx/LibRyujinx.Graphics.cs @@ -1,6 +1,7 @@ using LibRyujinx.Shared; using OpenTK.Graphics.OpenGL; using Ryujinx.Common.Configuration; +using Ryujinx.Common.Logging; using Ryujinx.Cpu; using Ryujinx.Graphics.GAL; using Ryujinx.Graphics.GAL.Multithreading; @@ -133,7 +134,14 @@ namespace LibRyujinx while (device.ConsumeFrameAvailable()) { - device.PresentFrame(() =>_swapBuffersCallback?.Invoke()); + device.PresentFrame(() => + { + if (device.Gpu.Renderer is ThreadedRenderer threaded && threaded.BaseRenderer is VulkanRenderer vulkanRenderer) + { + setCurrentTransform(_window, (int)vulkanRenderer.CurrentTransform); + } + _swapBuffersCallback?.Invoke(); + }); } }