Mesa (master): mesa: remove useless assert in _mesa_TextureView()
Samuel Pitoiset
hakzsam at kemper.freedesktop.org
Thu Jul 20 14:16:34 UTC 2017
Module: Mesa
Branch: master
Commit: e87e4f239f77fe9eb75599db8175488d23606d48
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e87e4f239f77fe9eb75599db8175488d23606d48
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Thu Jul 20 11:53:04 2017 +0200
mesa: remove useless assert in _mesa_TextureView()
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/textureview.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/mesa/main/textureview.c b/src/mesa/main/textureview.c
index ed66c17958..cef9caff41 100644
--- a/src/mesa/main/textureview.c
+++ b/src/mesa/main/textureview.c
@@ -633,7 +633,6 @@ _mesa_TextureView(GLuint texture, GLenum target, GLuint origtexture,
texFormat = _mesa_choose_texture_format(ctx, texObj, target, 0,
internalformat, GL_NONE, GL_NONE);
- assert(texFormat != MESA_FORMAT_NONE);
if (texFormat == MESA_FORMAT_NONE) return;
newViewNumLevels = MIN2(numlevels, origTexObj->NumLevels - minlevel);
More information about the mesa-commit
mailing list