diff --git a/source/blender/gpu/GPU_matrix.h b/source/blender/gpu/GPU_matrix.h index 1be75be1253..5af8e69a693 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 40e718594c5..1cdef0d40f3 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