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:
authorClément Foucault <foucault.clem@gmail.com>2020-07-17 20:13:43 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-07-18 04:43:52 +0300
commitd19b3019d9aee026b7aab738624795da162f6a8b (patch)
tree88978d4de72db83bc5900e63325530c6c0b153b4 /source/blender/windowmanager/intern/wm_subwindow.c
parenta6bd7777c20aa229ae9c4cdd537e94cf8a9c7edf (diff)
Cleanup: GPU: Encapsulate glScissor
Diffstat (limited to 'source/blender/windowmanager/intern/wm_subwindow.c')
-rw-r--r--source/blender/windowmanager/intern/wm_subwindow.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_subwindow.c b/source/blender/windowmanager/intern/wm_subwindow.c
index 490f45b270f..477579ed620 100644
--- a/source/blender/windowmanager/intern/wm_subwindow.c
+++ b/source/blender/windowmanager/intern/wm_subwindow.c
@@ -41,7 +41,7 @@ void wmViewport(const rcti *winrct)
int height = BLI_rcti_size_y(winrct) + 1;
GPU_viewport(winrct->xmin, winrct->ymin, width, height);
- glScissor(winrct->xmin, winrct->ymin, width, height);
+ GPU_scissor(winrct->xmin, winrct->ymin, width, height);
wmOrtho2_pixelspace(width, height);
GPU_matrix_identity_set();
@@ -80,7 +80,7 @@ void wmPartialViewport(rcti *drawrct, const rcti *winrct, const rcti *partialrct
}
GPU_viewport(0, 0, width, height);
- glScissor(x, y, scissor_width, scissor_height);
+ GPU_scissor(x, y, scissor_width, scissor_height);
wmOrtho2_pixelspace(width, height);
GPU_matrix_identity_set();
@@ -92,7 +92,7 @@ void wmWindowViewport(wmWindow *win)
int height = WM_window_pixels_y(win);
GPU_viewport(0, 0, width, height);
- glScissor(0, 0, width, height);
+ GPU_scissor(0, 0, width, height);
wmOrtho2_pixelspace(width, height);
GPU_matrix_identity_set();