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; }