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-Tag: android-x86-1.6~16^2~1465^2~390^2~4334 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=612cfb749c3526eeb446bbc631bf24716522f373;p=android-x86%2Fexternal-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: {