From: divverent Date: Thu, 23 Jul 2009 18:31:08 +0000 (+0000) Subject: this seems to fix autosprite2 X-Git-Tag: xonotic-v0.1.0preview~1556 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=28fb7af8a217b05de67c262194318b0cbb26dbe7;p=xonotic%2Fdarkplaces.git this seems to fix autosprite2 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9073 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index c14fe7e8..3ce06ae7 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -5425,8 +5425,8 @@ void RSurf_PrepareVerticesForBatch(qboolean generatenormals, qboolean generateta VectorSubtract(end, start, up); VectorNormalize(up); // calculate a forward vector to use instead of the original plane normal (this is how we get a new right vector) - //VectorSubtract(rsurface.modelorg, center, forward); - Matrix4x4_Transform3x3(&rsurface.inversematrix, r_refdef.view.forward, forward); + VectorSubtract(rsurface.modelorg, center, forward); + //Matrix4x4_Transform3x3(&rsurface.inversematrix, r_refdef.view.forward, forward); VectorNegate(forward, forward); VectorReflect(forward, 0, up, forward); VectorNormalize(forward);