mesa: remove useless assert in texture_storage()
Already checked in _mesa_choose_texture_format(). Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
f95420d74e
commit
1c6c42c289
|
@ -406,7 +406,6 @@ texture_storage(struct gl_context *ctx, GLuint dims,
|
||||||
|
|
||||||
texFormat = _mesa_choose_texture_format(ctx, texObj, target, 0,
|
texFormat = _mesa_choose_texture_format(ctx, texObj, target, 0,
|
||||||
internalformat, GL_NONE, GL_NONE);
|
internalformat, GL_NONE, GL_NONE);
|
||||||
assert(texFormat != MESA_FORMAT_NONE);
|
|
||||||
|
|
||||||
/* check that width, height, depth are legal for the mipmap level */
|
/* check that width, height, depth are legal for the mipmap level */
|
||||||
dimensionsOK = _mesa_legal_texture_dimensions(ctx, target, 0,
|
dimensionsOK = _mesa_legal_texture_dimensions(ctx, target, 0,
|
||||||
|
|
Loading…
Reference in New Issue