forked from bartvdbraak/blender
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:
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) */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user