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>2006-07-07 01:10:13 +0400
committerTon Roosendaal <ton@blender.org>2006-07-07 01:10:13 +0400
commita31ba1edbe93e1e49661df89ccb20b3d06884ad4 (patch)
tree10247017b55166128e984cb110fab3ecd1ef9285 /source/blender
parentb6b394e1850370d5a4c8d892c7aae68e8ac6d089 (diff)
Replacing screen_swapbuffers() with a direct swapbuffers() call during
progress of rendering. This prevents calling anything else but the swap itself. Might fix render memory issue in Windows.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/src/drawimage.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/src/drawimage.c b/source/blender/src/drawimage.c
index b5a4ceb8373..3197edf335f 100644
--- a/source/blender/src/drawimage.c
+++ b/source/blender/src/drawimage.c
@@ -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();
}
}