Fix T44029 textures disappear in viewport if GPU mipmap generation is
off. GPUs need a full tree of mipmaps up to dimension 1xn to work. This will make it so for all imbufs but cost is negligible and it's unlikely that something could break due to that.
This commit is contained in:
parent
3e5cd52783
commit
72419eebc2
Notes:
blender-bot
2023-02-14 09:22:32 +01:00
Referenced by issue #44029, glsl textured solid and matcap error.
|
@ -526,7 +526,7 @@ void IMB_makemipmap(ImBuf *ibuf, int use_filter)
|
|||
hbuf = ibuf->mipmap[curmap];
|
||||
hbuf->miplevel = curmap + 1;
|
||||
|
||||
if (hbuf->x <= 2 && hbuf->y <= 2)
|
||||
if (hbuf->x < 2 && hbuf->y < 2)
|
||||
break;
|
||||
|
||||
curmap++;
|
||||
|
|
Loading…
Reference in New Issue