From 95f2f5bab9ff080f3c556d1aa794f7ce8ca10717 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Sat, 4 Jul 2026 21:14:04 +0800 Subject: [PATCH] [Fix] (MG_Impl/Getter): don't ask system GL for context flags --- MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.cpp b/MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.cpp index 42be082e..77bb4d76 100644 --- a/MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.cpp +++ b/MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.cpp @@ -22,24 +22,9 @@ #include #include #include -#if !defined(_WIN32) -#include -#endif namespace MobileGL::MG_Impl::GLImpl { namespace { - bool TryGetNativeContextFlags(GLint* flags) { -#if !defined(_WIN32) - using GLGetIntegervFn = void (*)(GLenum, GLint*); - static auto* nextGetIntegerv = reinterpret_cast(dlsym(RTLD_NEXT, "glGetIntegerv")); - if (nextGetIntegerv) { - nextGetIntegerv(GL_CONTEXT_FLAGS, flags); - return true; - } -#endif - return false; - } - enum class IndexedBufferQueryKind { Binding, Start, @@ -959,9 +944,6 @@ namespace MobileGL::MG_Impl::GLImpl { return; case GL_CONTEXT_FLAGS: { *params = MG_State::pEGLContext ? MG_State::pEGLContext->GetCurrentContextFlags() : 0; - if (*params == 0) { - TryGetNativeContextFlags(params); - } return; } case GL_CULL_FACE: