diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-10-19 08:29:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-10-19 08:29:05 +0400 |
commit | 42d4e93733f563704456fed879b5f29b042d099f (patch) | |
tree | 747ea9c327054220e9454f451d924391734788fd | |
parent | 13d684f7bb9494a7dbcf39f2d26e60b1ed2f1b76 (diff) |
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.
-rw-r--r-- | source/blender/imbuf/IMB_imbuf_types.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/imbuf/IMB_imbuf_types.h b/source/blender/imbuf/IMB_imbuf_types.h index 5fbdcf95f13..a12976fa813 100644 --- a/source/blender/imbuf/IMB_imbuf_types.h +++ b/source/blender/imbuf/IMB_imbuf_types.h @@ -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) */ |