[Bf-blender-cvs] [bef63acbd6] blender2.8: remove gpuMatrixUpdate_legacy function

Mike Erwin noreply at git.blender.org
Tue Mar 21 06:42:54 CET 2017


Commit: bef63acbd6388eebc988d7941e651566db72a3f7
Author: Mike Erwin
Date:   Tue Mar 21 01:36:51 2017 -0400
Branches: blender2.8
https://developer.blender.org/rBbef63acbd6388eebc988d7941e651566db72a3f7

remove gpuMatrixUpdate_legacy function

No longer needed since 231b5d96bbfd77253941dd37cc4929e4e119d706 tracks dirty state of legacy matrix stacks.

Part of T49450

===================================================================

M	source/blender/gpu/GPU_matrix.h
M	source/blender/gpu/intern/gpu_matrix.c

===================================================================

diff --git a/source/blender/gpu/GPU_matrix.h b/source/blender/gpu/GPU_matrix.h
index 1be75be125..5af8e69a69 100644
--- a/source/blender/gpu/GPU_matrix.h
+++ b/source/blender/gpu/GPU_matrix.h
@@ -132,9 +132,6 @@ const float *gpuGetNormalMatrixInverse(float m[3][3]);
 #if SUPPORT_LEGACY_MATRIX
 /* copy top matrix from each legacy stack into new fresh stack */
 void gpuMatrixBegin3D_legacy(void);
-
-/* call after using glScale, glTranslate, etc. between draw calls */
-void gpuMatrixUpdate_legacy(void);
 #endif
 
 
diff --git a/source/blender/gpu/intern/gpu_matrix.c b/source/blender/gpu/intern/gpu_matrix.c
index 40e718594c..1cdef0d40f 100644
--- a/source/blender/gpu/intern/gpu_matrix.c
+++ b/source/blender/gpu/intern/gpu_matrix.c
@@ -809,11 +809,3 @@ bool gpuMatricesDirty(void)
 {
 	return state.dirty;
 }
-
-#if SUPPORT_LEGACY_MATRIX
-void gpuMatrixUpdate_legacy(void)
-{
-	BLI_assert(state.mode == MATRIX_MODE_INACTIVE);
-	state.dirty = true;
-}
-#endif




More information about the Bf-blender-cvs mailing list