added assertion to check that texture width is non-zero
This commit is contained in:
@@ -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:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user