summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-13 16:18:32 -0600
committerBrian <[email protected]>2007-08-13 18:20:04 -0600
commit612cfb749c3526eeb446bbc631bf24716522f373 (patch)
treebb76d31006c51d65dd0c5b88734f33ab5b6b5662
parent5e1bfe426f3e2bc7a13b3814f1fa732141f15a9a (diff)
added assertion to check that texture width is non-zero
-rw-r--r--src/mesa/pipe/softpipe/sp_tex_sample.c2
1 files changed, 2 insertions, 0 deletions
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:
{