Fix #141067: EEVEE: Mising UDIM texture Crash the EEVEE

It was missing the error texture for the tile maps.

Pull Request: https://projects.blender.org/blender/blender/pulls/141072
This commit is contained in:
Clément Foucault
2025-06-27 15:46:37 +02:00
committed by Clément Foucault
parent db2f8782b5
commit 3b9525ce7d

View File

@@ -429,6 +429,9 @@ static ImageGPUTextures image_get_gpu_texture(Image *ima,
ImageTile *tile = BKE_image_get_tile(ima, 0);
if (tile == nullptr) {
*result.texture = image_gpu_texture_error_create(textarget);
if (textarget == TEXTARGET_2D_ARRAY) {
*result.tile_mapping = image_gpu_texture_error_create(TEXTARGET_TILE_MAPPING);
}
return result;
}
@@ -438,6 +441,9 @@ static ImageGPUTextures image_get_gpu_texture(Image *ima,
if (ibuf == nullptr) {
BKE_image_release_ibuf(ima, ibuf, (use_viewers) ? lock : nullptr);
*result.texture = image_gpu_texture_error_create(textarget);
if (textarget == TEXTARGET_2D_ARRAY) {
*result.tile_mapping = image_gpu_texture_error_create(TEXTARGET_TILE_MAPPING);
}
return result;
}