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.
This commit is contained in:
Campbell Barton 2010-10-19 04:29:05 +00:00
parent 13d684f7bb
commit 42d4e93733

@ -71,7 +71,11 @@ typedef struct ImBuf {
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) */