Mesa (master): mesa: remove one extra check in _mesa_DeleteTextures()

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Thu Jul 20 14:16:34 UTC 2017


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

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Thu Jul 20 11:53:02 2017 +0200

mesa: remove one extra check in _mesa_DeleteTextures()

Already checked above.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.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;
 




More information about the mesa-commit mailing list