Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Eagar <joeedh@gmail.com>2010-04-13 16:51:03 +0400
committerJoseph Eagar <joeedh@gmail.com>2010-04-13 16:51:03 +0400
commit86aa4e5c3d7e0b95d9e55bab027f968b42a3eda6 (patch)
tree9208dfc29a7f163ea7af988ad663cfc7c78d2ae1 /source/creator
parente50f7986476a2fe5604d78db6dea784384d3e38f (diff)
prevent images from freeing gpu buffers if not run within the main thread, instead they are queued to be freed the next time GPU_image_free() is run from the main thread.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 46c0376c02a..68b99b20d01 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -50,6 +50,7 @@
#endif
#include "BLI_args.h"
+#include "BLI_threads.h"
#include "GEN_messaging.h"
@@ -964,6 +965,8 @@ int main(int argc, char **argv)
strip_quotes(build_type);
#endif
+ BLI_threadapi_init();
+
RNA_init();
RE_engines_init();