Mesa (master): mesa: remove useless assert in texture_storage()

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


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

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

mesa: remove useless assert in texture_storage()

Already checked in _mesa_choose_texture_format().

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

---

 src/mesa/main/texstorage.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c
index 99a169e5ff..ef4fe58f5e 100644
--- a/src/mesa/main/texstorage.c
+++ b/src/mesa/main/texstorage.c
@@ -406,7 +406,6 @@ texture_storage(struct gl_context *ctx, GLuint dims,
 
    texFormat = _mesa_choose_texture_format(ctx, texObj, target, 0,
                                            internalformat, GL_NONE, GL_NONE);
-   assert(texFormat != MESA_FORMAT_NONE);
 
    /* check that width, height, depth are legal for the mipmap level */
    dimensionsOK = _mesa_legal_texture_dimensions(ctx, target, 0,




More information about the mesa-commit mailing list