mesa: remove redudant check

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>
This commit is contained in:
Tapani Pälli 2020-04-09 10:40:42 +03:00
parent 25a61cce7d
commit fd24172200

View 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,