From 011b2ad6f8de0f1faa14f81eb3c61a3ea79f586d Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Thu, 2 Jul 2026 22:50:48 +0800 Subject: [PATCH] Revert "[Fix] (MG_Impl/GLImpl): reject default VAO draws [skip ci]" This reverts commit 632a4f085972f7657e899312403bf3f775a64e4d. --- 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 0213863b..bf4bc47a 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 (vao && vao->GetExternalIndex() == 0) { + if (MG_State::pEGLContext->IsCurrentContextOpenGLCoreProfile() && vao && vao->GetExternalIndex() == 0) { MG_State::pGLContext->RecordError( ErrorCode::InvalidOperation, MakeUnique("MG_Impl/GLImpl", functionName, - "Default vertex array object cannot be used for drawing.")); + "Default vertex array object cannot be used for drawing in core profile.")); return false; }