Fix undo in texture painting not refreshing float images in viewport if

16 bit float textures was off
This commit is contained in:
Antony Riakiotakis 2014-08-12 12:03:15 +02:00
parent d425cb06f6
commit 6e8e94d806

@ -530,12 +530,16 @@ int GPU_verify_image(Image *ima, ImageUser *iuser, int tftile, bool compare, boo
* a high precision format only if it is available */ * a high precision format only if it is available */
use_high_bit_depth = true; use_high_bit_depth = true;
} }
/* we may skip this in high precision, but if not, we need to have a valid buffer here */
else if (ibuf->userflags & IB_RECT_INVALID) {
IMB_rect_from_float(ibuf);
}
/* TODO unneeded when float images are correctly treated as linear always */ /* TODO unneeded when float images are correctly treated as linear always */
if (!is_data) if (!is_data)
do_color_management = true; do_color_management = true;
if (ibuf->rect==NULL) if (ibuf->rect == NULL)
IMB_rect_from_float(ibuf); IMB_rect_from_float(ibuf);
} }