From 56428df5e5a6e9a903deadb1e7e56ae1a3f9c7d2 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Wed, 18 Feb 2026 08:17:23 +0800 Subject: [PATCH] [Fix] (Includes.h): preprocessor hack to get rid of annoying gl.h --- MobileGL/Includes.h | 2 ++ MobileGL/MG_Test/Backend/DirectVulkan/TestExec.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/MobileGL/Includes.h b/MobileGL/Includes.h index 68930b2a..34e7864e 100644 --- a/MobileGL/Includes.h +++ b/MobileGL/Includes.h @@ -62,7 +62,9 @@ #endif #include #define GL_GLEXT_PROTOTYPES +#ifndef NO_GL_H #include "GL/gl.h" +#endif #include #undef GL_GLEXT_PROTOTYPES diff --git a/MobileGL/MG_Test/Backend/DirectVulkan/TestExec.cpp b/MobileGL/MG_Test/Backend/DirectVulkan/TestExec.cpp index 7039e901..f20ea2ba 100644 --- a/MobileGL/MG_Test/Backend/DirectVulkan/TestExec.cpp +++ b/MobileGL/MG_Test/Backend/DirectVulkan/TestExec.cpp @@ -39,7 +39,9 @@ #include #endif +#define NO_GL_H #include +#undef NO_GL_H namespace MobileGL { void MG_Initialize();