mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 16:28:08 +02:00
added assertion to check that texture width is non-zero
This commit is contained in:
parent
5e1bfe426f
commit
612cfb749c
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue