diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-03-14 22:39:10 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-03-14 22:39:10 +0300 |
commit | 2c80a4d4aa41d9c91b770ba664fbe0f71d641acf (patch) | |
tree | 299a113430d017dfc0492250c6124d41299b7ead | |
parent | 9009622b5464f13cc9521663b43605bf85e8e0b5 (diff) |
Fix T54322: partial redraw not working after recent refactor.
-rw-r--r-- | source/blender/windowmanager/intern/wm_subwindow.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/windowmanager/intern/wm_subwindow.c b/source/blender/windowmanager/intern/wm_subwindow.c index 5ca34880743..f34b5bf9c95 100644 --- a/source/blender/windowmanager/intern/wm_subwindow.c +++ b/source/blender/windowmanager/intern/wm_subwindow.c @@ -69,8 +69,6 @@ void wmPartialViewport(rcti *drawrct, const rcti *winrct, const rcti *partialrct scissor_pad = false; } - int x = drawrct->xmin; - int y = drawrct->ymin; int width = BLI_rcti_size_x(winrct) + 1; int height = BLI_rcti_size_y(winrct) + 1; @@ -85,8 +83,8 @@ void wmPartialViewport(rcti *drawrct, const rcti *winrct, const rcti *partialrct scissor_height += 1; } - glViewport(x, y, width, height); - glScissor(x, y, scissor_width, scissor_height); + glViewport(winrct->xmin, winrct->ymin, width, height); + glScissor(drawrct->xmin, drawrct->ymin, scissor_width, scissor_height); wmOrtho2_pixelspace(width, height); gpuLoadIdentity(); |