Mesa (master): mesa: remove redudant check

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Apr 12 15:54:18 UTC 2020


Module: Mesa
Branch: master
Commit: fd241722006def2dfdffaf260daa74dc19332cae
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fd241722006def2dfdffaf260daa74dc19332cae

Author: Tapani Pälli <tapani.palli at intel.com>
Date:   Thu Apr  9 10:40:42 2020 +0300

mesa: remove redudant check

CID: 1461410
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Andres Gomez <agomez at igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4500>

---

 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,



More information about the mesa-commit mailing list