added assertion to check that texture width is non-zero

This commit is contained in:
Brian
2007-08-13 16:18:32 -06:00
parent 5e1bfe426f
commit 612cfb749c
+2
View File
@@ -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:
{