From: Brian Date: Mon, 13 Aug 2007 22:18:32 +0000 (-0600) Subject: added assertion to check that texture width is non-zero X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=612cfb749c3526eeb446bbc631bf24716522f373;p=mesa.git added assertion to check that texture width is non-zero --- diff --git a/src/mesa/pipe/softpipe/sp_tex_sample.c b/src/mesa/pipe/softpipe/sp_tex_sample.c index 40350eec750..fb4f7930ac5 100644 --- a/src/mesa/pipe/softpipe/sp_tex_sample.c +++ b/src/mesa/pipe/softpipe/sp_tex_sample.c @@ -489,6 +489,8 @@ sp_get_sample_2d(struct tgsi_sampler *sampler, level0 = choose_mipmap_level(sampler, lambda); + assert(sampler->texture->level[level0].width); + switch (filter) { case PIPE_TEX_FILTER_NEAREST: {