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-18 04:46:12 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-07-18 04:46:12 +0300
commitd9228c557b06b267eb145c12735ac463e0a5afde (patch)
tree260bf252748832ae0c2e379a041dc2bf30cc0009 /source/blender/editors
parent4c28b1c74ec2a96055fcc393920f3967666dd735 (diff)
Cleanup: KnifeTool: Replace glPolygonOffset by GPU_polygon_offset
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/mesh/editmesh_knife.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index 0394874e8c1..873bdf2a674 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -1053,7 +1053,8 @@ static void knifetool_draw(const bContext *UNUSED(C), ARegion *UNUSED(region), v
const KnifeTool_OpData *kcd = arg;
GPU_depth_test(false);
- glPolygonOffset(1.0f, 1.0f);
+ GPU_matrix_push_projection();
+ GPU_polygon_offset(1.0f, 1.0f);
GPU_matrix_push();
GPU_matrix_mul(kcd->ob->obmat);
@@ -1224,6 +1225,7 @@ static void knifetool_draw(const bContext *UNUSED(C), ARegion *UNUSED(region), v
immUnbindProgram();
GPU_matrix_pop();
+ GPU_matrix_pop_projection();
/* Reset default */
GPU_depth_test(true);