From 632a4f085972f7657e899312403bf3f775a64e4d Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Thu, 2 Jul 2026 18:51:11 +0800 Subject: [PATCH] [Fix] (MG_Impl/GLImpl): reject default VAO draws [skip ci] --- MobileGL/MG_Impl/GLImpl/Drawing/GL_Drawing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MobileGL/MG_Impl/GLImpl/Drawing/GL_Drawing.cpp b/MobileGL/MG_Impl/GLImpl/Drawing/GL_Drawing.cpp index bf4bc47a..0213863b 100644 --- a/MobileGL/MG_Impl/GLImpl/Drawing/GL_Drawing.cpp +++ b/MobileGL/MG_Impl/GLImpl/Drawing/GL_Drawing.cpp @@ -67,11 +67,11 @@ namespace MobileGL::MG_Impl::GLImpl { } const auto& vao = MG_State::pGLContext->GetBoundVertexArray(); - if (MG_State::pEGLContext->IsCurrentContextOpenGLCoreProfile() && vao && vao->GetExternalIndex() == 0) { + if (vao && vao->GetExternalIndex() == 0) { MG_State::pGLContext->RecordError( ErrorCode::InvalidOperation, MakeUnique("MG_Impl/GLImpl", functionName, - "Default vertex array object cannot be used for drawing in core profile.")); + "Default vertex array object cannot be used for drawing.")); return false; }