Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2015-03-18 15:48:37 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-03-18 15:48:49 +0300
commit72419eebc26ca17c588b3d7fe5ccbb0f22d33ad4 (patch)
treefeb27238714a0ad00d24878d9b5b4a72f8d496bc
parent3e5cd527834f8ae84d52ba208ba17f611fd0721d (diff)
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.
-rw-r--r--source/blender/imbuf/intern/filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/filter.c b/source/blender/imbuf/intern/filter.c
index 352e230068b..7adb2c7cc1d 100644
--- a/source/blender/imbuf/intern/filter.c
+++ b/source/blender/imbuf/intern/filter.c
@@ -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++;