forked from bartvdbraak/blender
The Blenderplayer wasn't freeing GPU_Textures since according to BLI_threads, GPU_free_image() was never being called from the main thread. Calling BLI_threadapi_init() when the Blenderplayer starts sets the current thread as the main thread and solves the problem.
This commit is contained in:
parent
ccc56a6570
commit
4e7417e9fd
@ -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"
|
||||
@ -400,6 +401,10 @@ int main(int argc, char** argv)
|
||||
*/
|
||||
#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();
|
||||
|
Loading…
Reference in New Issue
Block a user