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

This commit is contained in:
2026-07-02 18:51:11 +08:00
parent e2e4b6e579
commit 632a4f0859
@@ -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<GenericErrorInfo>("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;
}