From ca6a8a233b653e4545427b00fe265566da924522 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 8 Jun 2009 10:00:14 +0000 Subject: 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... --- source/blender/blenlib/BLI_threads.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenlib') 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 * */ -- cgit v1.2.3