diff options
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 16893d92634..444d3c6a3d4 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -1952,6 +1952,7 @@ void blo_end_image_pointer_map(FileData *fd, Main *oldmain) ima->cache = newimaadr(fd, ima->cache); if (ima->cache == NULL) { ima->gpuflag = 0; + ima->gpuframenr = INT_MAX; for (i = 0; i < TEXTARGET_COUNT; i++) { ima->gputexture[i] = NULL; } @@ -4226,6 +4227,7 @@ static void direct_link_image(FileData *fd, Image *ima) /* if not restored, we keep the binded opengl index */ if (!ima->cache) { ima->gpuflag = 0; + ima->gpuframenr = INT_MAX; for (int i = 0; i < TEXTARGET_COUNT; i++) { ima->gputexture[i] = NULL; } |