From b48e63282968108fdf7d1ae56cf9e6aa1663ac20 Mon Sep 17 00:00:00 2001 From: BZLZHH Date: Wed, 13 Aug 2025 21:52:29 +0800 Subject: [PATCH] [Fix] (MG_Impl/Buffer): Don't produce gl error in IsBuffer. --- MobileGL/MG_Impl/GLImpl/Buffer/GL_Buffer.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/MobileGL/MG_Impl/GLImpl/Buffer/GL_Buffer.cpp b/MobileGL/MG_Impl/GLImpl/Buffer/GL_Buffer.cpp index 7ca6141f..485e7a50 100644 --- a/MobileGL/MG_Impl/GLImpl/Buffer/GL_Buffer.cpp +++ b/MobileGL/MG_Impl/GLImpl/Buffer/GL_Buffer.cpp @@ -436,14 +436,6 @@ namespace MobileGL { } GLboolean IsBuffer_State(GLuint buffer) { - if (buffer == 0) { - MG_State::pGLContext->RecordError( - ErrorCode::InvalidValue, - MakeShared("MG_Impl/GLImpl", "IsBuffer_State", - "Buffer name 0 is not a valid buffer object.")); - return GL_FALSE; - } - if (!BufferImpl::ValidateBufferName(buffer)) return GL_FALSE; return MG_State::pGLContext->ValidateBufferObject(buffer) ? GL_TRUE : GL_FALSE; }