[Mesa-dev] [PATCH 08/10] mesa: remove one extra check in _mesa_DeleteTextures()

Samuel Pitoiset samuel.pitoiset at gmail.com
Thu Jul 20 09:53:02 UTC 2017


Already checked above.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/mesa/main/texobj.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index 156a122ac0..e52ad22645 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -1463,11 +1463,6 @@ _mesa_DeleteTextures( GLsizei n, const GLuint *textures)
 
    FLUSH_VERTICES(ctx, 0); /* too complex */
 
-   if (n < 0) {
-      _mesa_error(ctx, GL_INVALID_VALUE, "glDeleteTextures(n)");
-      return;
-   }
-
    if (!textures)
       return;
 
-- 
2.13.3



More information about the mesa-dev mailing list