From fd241722006def2dfdffaf260daa74dc19332cae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Thu, 9 Apr 2020 10:40:42 +0300 Subject: [PATCH] mesa: remove redudant check MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit CID: 1461410 Signed-off-by: Tapani Pälli Reviewed-by: Andres Gomez Part-of: --- src/mesa/main/objectpurge.c | 4 ---- 1 file changed, 4 deletions(-) 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, -- 2.30.2