From 760a084f7a7a9a4464ed091dc4de5d49cb90fc82 Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Fri, 13 Nov 2009 18:43:59 +0000 Subject: [PATCH] That Matrix4_TransformN3 isn't needed, so disabled it. Also renamed that 'vector' argument to '_vector', just in case it gets used again. git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3449 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_backend.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/engine/gl/gl_backend.c b/engine/gl/gl_backend.c index 32732290d..ab3e031a3 100644 --- a/engine/gl/gl_backend.c +++ b/engine/gl/gl_backend.c @@ -1901,12 +1901,14 @@ static void DrawPass(const shaderpass_t *pass, const mesh_t *meshlist) checkerror(); } -void Matrix4_TransformN3(float *matrix, float *vector, float *product) +#if 0 +void Matrix4_TransformN3(float *matrix, float *_vector, float *product) { - product[0] = -matrix[12] - matrix[0]*vector[0] - matrix[4]*vector[1] - matrix[8]*vector[2]; - product[1] = -matrix[13] - matrix[1]*vector[0] - matrix[5]*vector[1] - matrix[9]*vector[2]; - product[2] = -matrix[14] - matrix[2]*vector[0] - matrix[6]*vector[1] - matrix[10]*vector[2]; + product[0] = -matrix[12] - matrix[0]*_vector[0] - matrix[4]*_vector[1] - matrix[8]*_vector[2]; + product[1] = -matrix[13] - matrix[1]*_vector[0] - matrix[5]*_vector[1] - matrix[9]*_vector[2]; + product[2] = -matrix[14] - matrix[2]*_vector[0] - matrix[6]*_vector[1] - matrix[10]*_vector[2]; } +#endif static void BE_RenderMeshProgram(const shader_t *shader, const shaderpass_t *pass, const mesh_t *meshlist) {