From 612cfb749c3526eeb446bbc631bf24716522f373 Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 13 Aug 2007 16:18:32 -0600 Subject: [PATCH] added assertion to check that texture width is non-zero --- src/mesa/pipe/softpipe/sp_tex_sample.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/pipe/softpipe/sp_tex_sample.c b/src/mesa/pipe/softpipe/sp_tex_sample.c index 40350ee..fb4f793 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: { -- 2.7.4