summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/textureview.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-07-20 11:53:04 +0200
committerSamuel Pitoiset <[email protected]>2017-07-20 16:14:36 +0200
commite87e4f239f77fe9eb75599db8175488d23606d48 (patch)
treec471b3460ea104b62a239e66268c1754e6ad7f89 /src/mesa/main/textureview.c
parent1ebe4305fd0e4b4f023eb50ca0b8229bdd7c1a5e (diff)
mesa: remove useless assert in _mesa_TextureView()
Already checked in _mesa_choose_texture_format(). Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/textureview.c')
-rw-r--r--src/mesa/main/textureview.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mesa/main/textureview.c b/src/mesa/main/textureview.c
index ed66c179589..cef9caff41c 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);