]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
this seems to fix autosprite2
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 23 Jul 2009 18:31:08 +0000 (18:31 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 23 Jul 2009 18:31:08 +0000 (18:31 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9073 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index c14fe7e850268a980bc167c1d1d9c75972cccae1..3ce06ae7436bea5e4edb37c075047e9ba73b8651 100644 (file)
@@ -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);