[Bf-blender-cvs] [be72d7a9f5] blender2.8: OpenGL: use new matrix API for Loop Cut
Mike Erwin
noreply at git.blender.org
Wed Feb 1 00:21:49 CET 2017
Commit: be72d7a9f5032d5e5191c66200a3377179e4dcff
Author: Mike Erwin
Date: Tue Jan 31 17:06:36 2017 -0500
Branches: blender2.8
https://developer.blender.org/rBbe72d7a9f5032d5e5191c66200a3377179e4dcff
OpenGL: use new matrix API for Loop Cut
Follow-up to rB85174329d9f5
Part of T49450
===================================================================
M source/blender/editors/mesh/editmesh_loopcut.c
===================================================================
diff --git a/source/blender/editors/mesh/editmesh_loopcut.c b/source/blender/editors/mesh/editmesh_loopcut.c
index af8c8acef2..6d8a220dd8 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);
More information about the Bf-blender-cvs
mailing list