Fix `Image.gl_touch` not loading image.

Same fix as for {rBc09f61a9157ddee0e186db52fb7ac0f4cdae09da}
This commit is contained in:
Jeroen Bakker 2022-01-24 15:32:04 +01:00
parent 578baf95e0
commit 796ef560b4
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ static int rna_Image_gl_touch(
BKE_image_tag_time(image);
if (image->gputexture[TEXTARGET_2D][0] == NULL) {
if (image->gputexture[TEXTARGET_2D][0][IMA_TEXTURE_RESOLUTION_FULL] == NULL) {
error = rna_Image_gl_load(image, reports, frame, layer_index, pass_index);
}