Fix #34145: 'Save Image' incorrect file type.

Own mistake in 16bit PNG support, wrong bitmask for custom flags

ftype really needs cleanup..
This commit is contained in:
Sergey Sharybin
2013-02-07 07:24:02 +00:00
parent 8d47c2a208
commit d648e03619

View File

@@ -175,7 +175,7 @@ typedef struct ImBuf {
* The bit flag is stored in the ImBuf.ftype variable.
* Note that the lower 11 bits is used for storing custom flags
*/
#define IB_CUSTOM_FLAGS_MASK 0x400
#define IB_CUSTOM_FLAGS_MASK 0x7ff
#define PNG (1 << 30)
#define TGA (1 << 28)