Replacing screen_swapbuffers() with a direct swapbuffers() call during
authorTon Roosendaal <ton@blender.org>
Thu, 6 Jul 2006 21:10:13 +0000 (21:10 +0000)
committerTon Roosendaal <ton@blender.org>
Thu, 6 Jul 2006 21:10:13 +0000 (21:10 +0000)
progress of rendering. This prevents calling anything else but the
swap itself.

Might fix render memory issue in Windows.

source/blender/src/drawimage.c

index b5a4ceb83732bb3422be6044abd083c1e1da9fca..3197edf335fb50a10fe06bcfe104992b3fe43608 100644 (file)
@@ -1959,8 +1959,9 @@ static void imagewindow_progress_display_cb(RenderResult *rr, volatile rcti *rec
        
        if (image_area) {
                imagewindow_progress(image_area, rr, rect);
-               image_area->win_swap= WIN_BACK_OK;
-               screen_swapbuffers();
+
+               /* no screen_swapbuffers, prevent any other window to draw */
+               myswapbuffers();
        }
 }
 
@@ -2144,8 +2145,8 @@ static void imagewindow_renderinfo_cb(RenderStats *rs)
 
                imagewindow_draw_renderinfo(image_area);
                
-               image_area->win_swap= WIN_BACK_OK;
-               screen_swapbuffers();
+               /* no screen_swapbuffers, prevent any other window to draw */
+               myswapbuffers();
        }
 }