From db93ddd28046297602d03c051b2a19616b83806a Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Wed, 18 Jun 2025 10:18:01 +0800 Subject: [PATCH] [Fix] (EGL_impl.cpp): make swapchain rotation right --- MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp b/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp index 80a6aa4d..220a63de 100644 --- a/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp +++ b/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp @@ -587,6 +587,7 @@ namespace MG_EGL::Diligent { EngineCI.DynamicHeapSize = 256 << 20; ::Diligent::SwapChainDesc SCDesc; + SCDesc.PreTransform = SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180; MG_Util::Debug::LogD("Creating Vulkan device and contexts"); pFactoryVk->CreateDeviceAndContextsVk(