From be72d7a9f5032d5e5191c66200a3377179e4dcff Mon Sep 17 00:00:00 2001 From: Mike Erwin Date: Tue, 31 Jan 2017 17:06:36 -0500 Subject: [PATCH] OpenGL: use new matrix API for Loop Cut Follow-up to rB85174329d9f5 Part of T49450 --- source/blender/editors/mesh/editmesh_loopcut.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/blender/editors/mesh/editmesh_loopcut.c b/source/blender/editors/mesh/editmesh_loopcut.c index af8c8acef28..6d8a220dd86 100644 --- a/source/blender/editors/mesh/editmesh_loopcut.c +++ b/source/blender/editors/mesh/editmesh_loopcut.c @@ -45,9 +45,8 @@ #include "BKE_DerivedMesh.h" #include "BKE_unit.h" -#include "BIF_gl.h" - #include "GPU_immediate.h" +#include "GPU_matrix.h" #include "UI_interface.h" @@ -106,8 +105,8 @@ static void ringsel_draw(const bContext *C, ARegion *UNUSED(ar), void *arg) if (v3d && v3d->zbuf) glDisable(GL_DEPTH_TEST); - glPushMatrix(); - glMultMatrixf(lcd->ob->obmat); + gpuMatrixBegin3D_legacy(); + gpuMultMatrix3D(lcd->ob->obmat); unsigned pos = add_attrib(immVertexFormat(), "pos", GL_FLOAT, 3, KEEP_FLOAT); @@ -139,7 +138,7 @@ static void ringsel_draw(const bContext *C, ARegion *UNUSED(ar), void *arg) immUnbindProgram(); - glPopMatrix(); + gpuMatrixEnd(); if (v3d && v3d->zbuf) glEnable(GL_DEPTH_TEST);