The Blenderplayer wasn't freeing GPU_Textures since according to BLI_threads, GPU_fre...
authorMitchell Stokes <mogurijin@gmail.com>
Thu, 7 Jul 2011 10:37:46 +0000 (10:37 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Thu, 7 Jul 2011 10:37:46 +0000 (10:37 +0000)
source/gameengine/GamePlayer/ghost/GPG_ghost.cpp

index 14048c70516d18d12bca6f9a2b753cadb362d645..cbbeb9419d185483d64fdde5fb312d3d6c4b874b 100644 (file)
@@ -64,6 +64,7 @@ extern "C"
 #include "BKE_node.h"  
 #include "BKE_report.h"
 #include "BKE_library.h"
+#include "BLI_threads.h"
 #include "BLI_blenlib.h"
 #include "DNA_scene_types.h"
 #include "DNA_userdef_types.h"
@@ -399,7 +400,11 @@ int main(int argc, char** argv)
                  ::DisposeNibReference(nibRef);
     */
 #endif // __APPLE__
-
+       
+       // We don't use threads directly in the BGE, but we need to call this so things like
+       // freeing up GPU_Textures works correctly.
+       BLI_threadapi_init();
+       
        RNA_init();
 
        init_nodesystem();