Fix for wrong color space when image loader set both rect and rect_float

Quite safe for 2.72.
This commit is contained in:
2014-09-29 14:34:37 +06:00
parent 516dbaeb73
commit ab8e709d67

View File

@@ -58,7 +58,7 @@ static void imb_handle_alpha(ImBuf *ibuf, int flags, char colorspace[IM_MAX_SPAC
int alpha_flags;
if (colorspace) {
if (ibuf->rect) {
if (ibuf->rect != NULL && ibuf->rect_float == NULL) {
/* byte buffer is never internally converted to some standard space,
* store pointer to it's color space descriptor instead
*/