mesa: remove useless assert in _mesa_TextureView()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Jul 2017 09:53:04 +0000 (11:53 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Jul 2017 14:14:36 +0000 (16:14 +0200)
Already checked in _mesa_choose_texture_format().

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/textureview.c

index ed66c179589b799bf78b580179777bbf8adff572..cef9caff41cbb49626ad912e56ed9ae0612f7791 100644 (file)
@@ -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);