Fix Image GPU texture.

Due to recent changes there have been reports of incorrect loading of
GPU textures. This fix reverts a part of {D13238} that might be the
source of the issue.
This commit is contained in:
Jeroen Bakker 2022-02-16 10:45:46 +01:00
parent 232d5d3f13
commit 54972123f7
1 changed files with 2 additions and 1 deletions

View File

@ -447,7 +447,8 @@ static GPUTexture *image_get_gpu_texture(Image *ima,
if (ibuf_intern == nullptr) {
ibuf_intern = BKE_image_acquire_ibuf(ima, iuser, nullptr);
if (ibuf_intern == nullptr) {
return image_gpu_texture_error_create(textarget);
*tex = image_gpu_texture_error_create(textarget);
return *tex;
}
}