Revision: 48629
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48629
Author:   nazgul
Date:     2012-07-05 09:40:53 +0000 (Thu, 05 Jul 2012)
Log Message:
-----------
Color management: do not initialize threads in case conversion
happens in single thread only.

Modified Paths:
--------------
    branches/soc-2011-tomato/source/blender/imbuf/intern/colormanagement.c

Modified: branches/soc-2011-tomato/source/blender/imbuf/intern/colormanagement.c
===================================================================
--- branches/soc-2011-tomato/source/blender/imbuf/intern/colormanagement.c      
2012-07-05 09:39:06 UTC (rev 48628)
+++ branches/soc-2011-tomato/source/blender/imbuf/intern/colormanagement.c      
2012-07-05 09:40:53 UTC (rev 48629)
@@ -622,7 +622,8 @@
        int i, tot_thread = BLI_system_thread_count();
        int start_line, tot_line;
 
-       BLI_init_threads(&threads, do_thread, tot_thread);
+       if (tot_thread > 1)
+               BLI_init_threads(&threads, do_thread, tot_thread);
 
        start_line = 0;
        tot_line = ((float)(ibuf->y / tot_thread)) + 0.5f;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to