[iortcw] 109/152: All: Rend2: Fix reversed VectorCopy4() usage

Simon McVittie smcv at debian.org
Fri Sep 8 10:40:19 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.5a
in repository iortcw.

commit d91425d4a16950969bcd23dff2b00f4d572af6eb
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Sun Sep 11 19:30:03 2016 -0400

    All: Rend2: Fix reversed VectorCopy4() usage
---
 MP/code/rend2/tr_surface.c | 4 ++--
 SP/code/rend2/tr_surface.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/MP/code/rend2/tr_surface.c b/MP/code/rend2/tr_surface.c
index 459a04d..33c4b99 100644
--- a/MP/code/rend2/tr_surface.c
+++ b/MP/code/rend2/tr_surface.c
@@ -1158,14 +1158,14 @@ static void RB_SurfaceGrid( srfBspSurface_t *srf ) {
 
 				if ( tess.shader->vertexAttribs & ATTR_NORMAL )
 				{
-					VectorCopy4(normal, dv->normal);
+					VectorCopy4(dv->normal, normal);
 					normal += 4;
 				}
 
 #ifdef USE_VERT_TANGENT_SPACE
 				if ( tess.shader->vertexAttribs & ATTR_TANGENT )
 				{
-					VectorCopy4(tangent, dv->tangent);
+					VectorCopy4(dv->tangent, tangent);
 					tangent += 4;
 				}
 #endif
diff --git a/SP/code/rend2/tr_surface.c b/SP/code/rend2/tr_surface.c
index dd67be6..a016e1e 100644
--- a/SP/code/rend2/tr_surface.c
+++ b/SP/code/rend2/tr_surface.c
@@ -1156,14 +1156,14 @@ static void RB_SurfaceGrid( srfBspSurface_t *srf ) {
 
 				if ( tess.shader->vertexAttribs & ATTR_NORMAL )
 				{
-					VectorCopy4(normal, dv->normal);
+					VectorCopy4(dv->normal, normal);
 					normal += 4;
 				}
 
 #ifdef USE_VERT_TANGENT_SPACE
 				if ( tess.shader->vertexAttribs & ATTR_TANGENT )
 				{
-					VectorCopy4(tangent, dv->tangent);
+					VectorCopy4(dv->tangent, tangent);
 					tangent += 4;
 				}
 #endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list