From 4ae9c00c06c8604d75114a80a801a58c98a9ea5f Mon Sep 17 00:00:00 2001 From: BZLZHH Date: Fri, 20 Jun 2025 21:55:53 +0800 Subject: [PATCH] Reapply "[Fix] (EGL_impl.cpp): make swapchain rotation right" This reverts commit 832fc56a1b2fdda1d053e43f5c42fd0b0d81b27b. --- MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp b/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp index 6059d30e..5812168d 100644 --- a/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp +++ b/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp @@ -678,6 +678,8 @@ namespace MG_EGL::Diligent { ::Diligent::SwapChainDesc SCDesc; SCDesc.ColorBufferFormat = TEX_FORMAT_RGBA8_UNORM; + SCDesc.PreTransform = SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180; + MG_Util::Debug::LogD("Creating Vulkan device and contexts"); pFactoryVk->CreateDeviceAndContextsVk( EngineCI, &MG_Diligent::g_pDevice, &MG_Diligent::g_pContext);