mirror of
https://projects.blender.org/blender/blender.git
synced 2025-01-22 15:32:15 -05:00
Revert "Fix #123794: Crash when UDIMs have gray and color tiles"
This reverts commit 095e78bd28
.
This commit is contained in:
parent
095e78bd28
commit
baf07c22bd
1 changed files with 1 additions and 2 deletions
|
@ -225,7 +225,6 @@ static GPUTexture *gpu_texture_create_tile_array(Image *ima, ImBuf *main_ibuf)
|
|||
ImBuf *ibuf = BKE_image_acquire_ibuf(ima, &iuser, nullptr);
|
||||
|
||||
if (ibuf) {
|
||||
const bool tile_use_grayscale = ibuf->planes <= 8;
|
||||
const bool store_premultiplied = BKE_image_has_gpu_texture_premultiplied_alpha(ima, ibuf);
|
||||
IMB_update_gpu_texture_sub(tex,
|
||||
ibuf,
|
||||
|
@ -233,7 +232,7 @@ static GPUTexture *gpu_texture_create_tile_array(Image *ima, ImBuf *main_ibuf)
|
|||
tilelayer,
|
||||
UNPACK2(tilesize),
|
||||
use_high_bitdepth,
|
||||
tile_use_grayscale,
|
||||
use_grayscale,
|
||||
store_premultiplied);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue