diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-02-04 14:20:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-02-04 14:20:58 +0300 |
commit | 5c8f8a74030c96e07a0ce719f37ed7958b6c3fb8 (patch) | |
tree | 6ef48627addb8acf00f2cff7cde50592dd730d98 /source/blender/windowmanager/intern | |
parent | 04ec64b251f155581b6bd2a6bc0d55c4381ba12d (diff) | |
parent | 3dde6360ff6ae002002472f7b5a155e3d119230f (diff) |
Merge branch 'blender-v2.82-release'
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_subwindow.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_subwindow.c b/source/blender/windowmanager/intern/wm_subwindow.c index 6a5de84ac31..5ef78723a2a 100644 --- a/source/blender/windowmanager/intern/wm_subwindow.c +++ b/source/blender/windowmanager/intern/wm_subwindow.c @@ -108,7 +108,8 @@ void wmOrtho2(float x1, float x2, float y1, float y2) y2 += 1.0f; } - GPU_matrix_ortho_set(x1, x2, y1, y2, -100, 100); + GPU_matrix_ortho_set( + x1, x2, y1, y2, GPU_MATRIX_ORTHO_CLIP_NEAR_DEFAULT, GPU_MATRIX_ORTHO_CLIP_FAR_DEFAULT); } static void wmOrtho2_offset(const float x, const float y, const float ofs) @@ -136,6 +137,6 @@ void wmGetProjectionMatrix(float mat[4][4], const rcti *winrct) (float)width - GLA_PIXEL_OFS, -GLA_PIXEL_OFS, (float)height - GLA_PIXEL_OFS, - -100, - 100); + GPU_MATRIX_ORTHO_CLIP_NEAR_DEFAULT, + GPU_MATRIX_ORTHO_CLIP_FAR_DEFAULT); } |