[Fix] (MG_Impl/VertexArray|Buffer): Fix incorrect name zero operations.

This commit is contained in:
BZLZHH
2025-08-12 16:54:56 +08:00
parent 5127479874
commit 256e947a5d
6 changed files with 19 additions and 8 deletions
@@ -107,7 +107,7 @@ namespace MobileGL {
return;
}
if (!VertexArrayImpl::ValidateVertexArrayName(array)) return;
if (!VertexArrayImpl::ValidateVertexArrayName(array, true)) return;
if (!MG_State::pGLContext->ValidateVertexArrayObject(array)) {
MG_State::pGLContext->CreateVertexArrayObject(array);
@@ -128,7 +128,7 @@ namespace MobileGL {
GLuint vao = arrays[i];
if (vao == 0) continue;
if (!VertexArrayImpl::ValidateVertexArrayName(vao)) continue;
if (!VertexArrayImpl::ValidateVertexArrayName(vao, true)) continue;
if (MG_State::pGLContext->GetBoundVertexArray() &&
MG_State::pGLContext->GetBoundVertexArray() == MG_State::pGLContext->GetVertexArrayObject(vao)) {