diff --git a/src/mesa/drivers/dri/radeon/radeon_texture.c b/src/mesa/drivers/dri/radeon/radeon_texture.c index 8b1e34f..e0e1dce 100644 --- a/src/mesa/drivers/dri/radeon/radeon_texture.c +++ b/src/mesa/drivers/dri/radeon/radeon_texture.c @@ -1036,6 +1036,8 @@ void radeon_image_target_texture_2d(struct gl_context *ctx, GLenum target, texImage->RowStride = image->pitch; texImage->InternalFormat = image->internal_format; + assert(texImage->TexFormat != MESA_FORMAT_NONE); + if(t->mt) { radeon_miptree_unreference(&t->mt);