[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32580] trunk/blender/source/blender/imbuf /IMB_imbuf_types.h: Using unsigned int from own commit r32425 broke tiling image textures in imagetexture .c.

Campbell Barton ideasman42 at gmail.com
Tue Oct 19 06:29:05 CEST 2010


Revision: 32580
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32580
Author:   campbellbarton
Date:     2010-10-19 06:29:05 +0200 (Tue, 19 Oct 2010)

Log Message:
-----------
Using unsigned int from own commit r32425 broke tiling image textures in imagetexture.c.
Most formats use unsigned int, but practically its unlikely to be a problem to use int.

Modified Paths:
--------------
    trunk/blender/source/blender/imbuf/IMB_imbuf_types.h

Modified: trunk/blender/source/blender/imbuf/IMB_imbuf_types.h
===================================================================
--- trunk/blender/source/blender/imbuf/IMB_imbuf_types.h	2010-10-19 04:25:16 UTC (rev 32579)
+++ trunk/blender/source/blender/imbuf/IMB_imbuf_types.h	2010-10-19 04:29:05 UTC (rev 32580)
@@ -71,7 +71,11 @@
 	struct ImBuf *next, *prev;	/**< allow lists of ImBufs, for caches or flipbooks */
 
 	/* dimensions */
-	unsigned int x, y;				/* width and Height of our image buffer */
+	int x, y;				/* width and Height of our image buffer.
+							 * Should be 'unsigned int' since most formats use this.
+							 * but this is problematic with texture math in imagetexture.c
+							 * avoid problems and use int. - campbell */
+
 	unsigned char depth;	/* Active amount of bits/bitplanes */
 	int channels;			/* amount of channels in rect_float (0 = 4 channel default) */
 





More information about the Bf-blender-cvs mailing list