From cab375917b6030c7259b2eb152d4ae751b61b02c Mon Sep 17 00:00:00 2001 From: BZLZHH Date: Sat, 21 Jun 2025 21:44:43 +0800 Subject: [PATCH] [Fix] (Diligent/PSO): Disable FrontCounterClockwise currently. --- MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp b/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp index 871904ed..0703ae7d 100644 --- a/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp +++ b/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp @@ -270,7 +270,8 @@ namespace MG_Diligent { Diligent::RasterizerStateDesc &rasterizerDesc = PSOCreateInfo.GraphicsPipeline.RasterizerDesc; rasterizerDesc.CullMode = commonState.capabilities[GL_CULL_FACE] ? Diligent::CULL_MODE_BACK : Diligent::CULL_MODE_NONE; - rasterizerDesc.FrontCounterClockwise = true; + rasterizerDesc.FrontCounterClockwise = false; + // TODO: Get correct FrontCounterClockwise state. if (!programInfo.inputLayout.empty()) { PSOCreateInfo.GraphicsPipeline.InputLayout.LayoutElements = programInfo.inputLayout.data(); @@ -716,7 +717,7 @@ namespace MG_EGL::Diligent { } void LoadDiligentCore(NativeWindowType window) { - switch (DILIGENT_BACKEND_TYPE) { + switch (MG_Diligent::DILIGENT_BACKEND_TYPE) { case MG_Constants::Backend::BACKEND_DILIGENT_VULKAN: LoadDiligentCoreVulkan(window); break;