diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-09-12 20:06:17 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-09-12 20:06:17 +0400 |
commit | 21d74deda6a26433ba36e5751ca74f0a162f3279 (patch) | |
tree | 849d7489a4d5b0b641f7d9806e63b13b2303b77c /source/blender/gpu | |
parent | 6ebd6cfa73aa96af2b97384242b716e75897766f (diff) |
Fixes for game engine runtime on Mac OS X, there were issues
working with relative paths. Still doesn't work optimal, since
paths are relative to game.blend which is in the app bundle
under Contents/Resources, so other files need to be moved there
manually at the moment.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/intern/gpu_draw.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c index 8922846f365..fe47fa3c60e 100644 --- a/source/blender/gpu/intern/gpu_draw.c +++ b/source/blender/gpu/intern/gpu_draw.c @@ -720,8 +720,9 @@ void GPU_free_images(void) { Image* ima; - for(ima=G.main->image.first; ima; ima=ima->id.next) - GPU_free_image(ima); + if(G.main) + for(ima=G.main->image.first; ima; ima=ima->id.next) + GPU_free_image(ima); } /* OpenGL Materials */ |