From 58a46c6106d89e96ba28765e11b299300f0f4609 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Wed, 18 Jun 2025 10:36:08 +0800 Subject: [PATCH] [Fix] (EGL_impl.cpp): use RGBA8_UNORM as ColorBufferFormat, avoiding auto sRGB color correction --- 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 220a63de..f43cfdf3 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.ColorBufferFormat = TEX_FORMAT_RGBA8_UNORM; SCDesc.PreTransform = SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180; MG_Util::Debug::LogD("Creating Vulkan device and contexts");