Revert "[Fix] (MG_Impl/GLImpl): reject default VAO draws [skip ci]"

This reverts commit 632a4f0859.
This commit is contained in:
2026-07-02 22:50:48 +08:00
parent e83e6ed76e
commit 011b2ad6f8
@@ -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<GenericErrorInfo>("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;
}