From bbc9e263f0d5ca5d7c0e0ae2e7a6d4564be7a26a Mon Sep 17 00:00:00 2001 From: SmileTheory Date: Tue, 13 Sep 2016 01:41:46 -0700 Subject: [PATCH] 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 063f4b14..082254b6 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; }