mesa: remove redudant check
authorTapani Pälli <tapani.palli@intel.com>
Thu, 9 Apr 2020 07:40:42 +0000 (10:40 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Sun, 12 Apr 2020 13:48:27 +0000 (16:48 +0300)
CID: 1461410
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Andres Gomez <agomez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4500>

src/mesa/main/objectpurge.c

index 090e28b3447d2e6245f02093cc8fb06d7da2831e..615862e32ae6e29b56d19031a534ccb32d6b2a67 100644 (file)
@@ -53,10 +53,6 @@ buffer_object_purgeable(struct gl_context *ctx, GLuint name, GLenum option)
                   "glObjectPurgeable(name = 0x%x)", name);
       return 0;
    }
-   if (!bufObj) {
-      _mesa_error(ctx, GL_INVALID_OPERATION, "glObjectPurgeable(buffer 0)" );
-      return 0;
-   }
 
    if (bufObj->Purgeable) {
       _mesa_error(ctx, GL_INVALID_OPERATION,