From: Tapani Pälli Date: Thu, 9 Apr 2020 07:40:42 +0000 (+0300) Subject: mesa: remove redudant check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd241722006def2dfdffaf260daa74dc19332cae;p=mesa.git mesa: remove redudant check CID: 1461410 Signed-off-by: Tapani Pälli Reviewed-by: Andres Gomez Part-of: --- diff --git a/src/mesa/main/objectpurge.c b/src/mesa/main/objectpurge.c index 090e28b3447..615862e32ae 100644 --- a/src/mesa/main/objectpurge.c +++ b/src/mesa/main/objectpurge.c @@ -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,