[ioquake3] 40/59: OpenGL2: Fix more reversed VectorCopy4() usage.
Simon McVittie
smcv at debian.org
Wed Sep 21 19:57:08 UTC 2016
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository ioquake3.
commit bbc9e263f0d5ca5d7c0e0ae2e7a6d4564be7a26a
Author: SmileTheory <SmileTheory at gmail.com>
Date: Tue Sep 13 01:41:46 2016 -0700
OpenGL2: Fix more reversed VectorCopy4() usage.
---
code/renderergl2/tr_surface.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/code/renderergl2/tr_surface.c b/code/renderergl2/tr_surface.c
index 063f4b1..082254b 100644
--- a/code/renderergl2/tr_surface.c
+++ b/code/renderergl2/tr_surface.c
@@ -128,10 +128,10 @@ void RB_AddQuadStampExt( vec3_t origin, vec3_t left, vec3_t up, float color[4],
R_VaoPackNormal(iNormal, normal);
- VectorCopy4(tess.normal[ndx], iNormal);
- VectorCopy4(tess.normal[ndx+1], iNormal);
- VectorCopy4(tess.normal[ndx+2], iNormal);
- VectorCopy4(tess.normal[ndx+3], iNormal);
+ VectorCopy4(iNormal, tess.normal[ndx]);
+ VectorCopy4(iNormal, tess.normal[ndx + 1]);
+ VectorCopy4(iNormal, tess.normal[ndx + 2]);
+ VectorCopy4(iNormal, tess.normal[ndx + 3]);
// standard square texture coordinates
VectorSet2(tess.texCoords[ndx ][0], s1, t1);
@@ -1156,7 +1156,7 @@ static void RB_SurfaceGrid( srfBspSurface_t *srf ) {
if ( tess.shader->vertexAttribs & ATTR_LIGHTDIRECTION )
{
- VectorCopy4(lightdir, dv->lightdir);
+ VectorCopy4(dv->lightdir, lightdir);
lightdir += 4;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git
More information about the Pkg-games-commits
mailing list