diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-06-23 17:58:59 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-06-23 17:58:59 +0400 |
commit | 4a34d86f329ed6728585a4eb9b5b817684d784b8 (patch) | |
tree | a0705f042916fc078304067aed6949ddda1404c5 /source/blender/gpu/intern/gpu_draw.c | |
parent | 4acd963860e7037aba09ee08d8e2bd3803c3e3ec (diff) |
Fix #35848: render crash in background mode due to missing G.main.
Diffstat (limited to 'source/blender/gpu/intern/gpu_draw.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c index 9ed1f994a33..e98f8988aa6 100644 --- a/source/blender/gpu/intern/gpu_draw.c +++ b/source/blender/gpu/intern/gpu_draw.c @@ -1147,7 +1147,7 @@ void GPU_free_unused_buffers(void) ima = node->link; /* check in case it was freed in the meantime */ - if (BLI_findindex(&G.main->image, ima) != -1) + if (G.main && BLI_findindex(&G.main->image, ima) != -1) GPU_free_image(ima); } |