Fix T41920: Changing Use Alpha settings doesn't refresh viewport properly

This commit is contained in:
Sergey Sharybin 2014-10-03 11:27:05 +02:00
parent a654512356
commit 502f6d538d

@ -176,6 +176,10 @@ int ImageManager::add_image(const string& filename, void *builtin_data, bool ani
img->frame = frame; img->frame = frame;
img->need_load = true; img->need_load = true;
} }
if(img->use_alpha != use_alpha) {
img->use_alpha = use_alpha;
img->need_load = true;
}
img->users++; img->users++;
return slot; return slot;
} }
@ -219,6 +223,10 @@ int ImageManager::add_image(const string& filename, void *builtin_data, bool ani
img->frame = frame; img->frame = frame;
img->need_load = true; img->need_load = true;
} }
if(img->use_alpha != use_alpha) {
img->use_alpha = use_alpha;
img->need_load = true;
}
img->users++; img->users++;
return slot+tex_image_byte_start; return slot+tex_image_byte_start;
} }