[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54128] trunk/blender/source/blender/gpu/ intern/gpu_draw.c: Activate partial redraw of non-power of two textures.
Antony Riakiotakis
kalast at gmail.com
Sun Jan 27 21:26:18 CET 2013
Revision: 54128
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54128
Author: psy-fi
Date: 2013-01-27 20:26:18 +0000 (Sun, 27 Jan 2013)
Log Message:
-----------
Activate partial redraw of non-power of two textures. This looks like
it's working as expected out of the box. I hope nothing breaks.
Modified Paths:
--------------
trunk/blender/source/blender/gpu/intern/gpu_draw.c
Modified: trunk/blender/source/blender/gpu/intern/gpu_draw.c
===================================================================
--- trunk/blender/source/blender/gpu/intern/gpu_draw.c 2013-01-27 20:17:49 UTC (rev 54127)
+++ trunk/blender/source/blender/gpu/intern/gpu_draw.c 2013-01-27 20:26:18 UTC (rev 54128)
@@ -930,8 +930,7 @@
ibuf = BKE_image_acquire_ibuf(ima, NULL, NULL);
if (ima->repbind || (GPU_get_mipmap() && !GTS.gpu_mipmap) || !ima->bindcode || !ibuf ||
- (!is_power_of_2_i(ibuf->x) || !is_power_of_2_i(ibuf->y)) ||
- (w == 0) || (h == 0))
+ (w == 0) || (h == 0))
{
/* these cases require full reload still */
GPU_free_image(ima);
More information about the Bf-blender-cvs
mailing list