[Bf-blender-cvs] [72419ee] master: Fix T44029 textures disappear in viewport if GPU mipmap generation is off.

Antony Riakiotakis noreply at git.blender.org
Wed Mar 18 13:49:00 CET 2015


Commit: 72419eebc26ca17c588b3d7fe5ccbb0f22d33ad4
Author: Antony Riakiotakis
Date:   Wed Mar 18 13:48:37 2015 +0100
Branches: master
https://developer.blender.org/rB72419eebc26ca17c588b3d7fe5ccbb0f22d33ad4

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.

===================================================================

M	source/blender/imbuf/intern/filter.c

===================================================================

diff --git a/source/blender/imbuf/intern/filter.c b/source/blender/imbuf/intern/filter.c
index 352e230..7adb2c7 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++;




More information about the Bf-blender-cvs mailing list