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:
authorTon Roosendaal <ton@blender.org>2009-06-08 14:00:14 +0400
committerTon Roosendaal <ton@blender.org>2009-06-08 14:00:14 +0400
commitca6a8a233b653e4545427b00fe265566da924522 (patch)
tree1fef07ad3ac191f5c2ddba1f78f3da4054078457 /source/blender/blenlib
parent9d4ebe1088dd5f59b2a53d47eaed1d40ab5c0a3e (diff)
2.5
Preview renders: - Added proper button type (BUT_EXTRA) for preview buttons, to handle drawing better. It now first draws an alpha mask, to ensure the preview is correctly fitting inside the widget style. It then draws the outline. - Added protection for executing preview renders while regular rendering, that's not going to work...
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/BLI_threads.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_threads.h b/source/blender/blenlib/BLI_threads.h
index 5a7e84c42fb..8babb5fe780 100644
--- a/source/blender/blenlib/BLI_threads.h
+++ b/source/blender/blenlib/BLI_threads.h
@@ -53,6 +53,10 @@ void BLI_unlock_thread (int type);
int BLI_system_thread_count( void ); /* gets the number of threads the system can make use of */
+ /* exported by preview render, it has to ensure render buffers are not freed while draw */
+void BLI_lock_malloc_thread(void);
+void BLI_unlock_malloc_thread(void);
+
/* ThreadedWorker is a simple tool for dispatching work to a limited number of threads in a transparent
* fashion from the caller's perspective
* */