From fd7fb6ed9cbba204fa722f8a684784889f463991 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 24 Jun 2010 12:30:09 +0000 Subject: [PATCH] cameras: invert the correct coordinate to fix up texcoords git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10247 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index 834fd650..cca82116 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -7702,7 +7702,7 @@ static void R_Water_ProcessPlanes(void) r_refdef.view.cullface_front = GL_FRONT; r_refdef.view.cullface_back = GL_BACK; // also reverse the view matrix - Matrix4x4_ConcatScale3(&r_refdef.view.matrix, 1, -1, 1); + Matrix4x4_ConcatScale3(&r_refdef.view.matrix, 1, 1, -1); // this serves to invert texcoords in the result, as the copied texture is mapped the wrong way round R_RenderView_UpdateViewVectors(); if(p->camera_entity) r_refdef.scene.worldmodel->brush.FatPVS(r_refdef.scene.worldmodel, visorigin, 2, r_refdef.viewcache.world_pvsbits, (r_refdef.viewcache.world_numclusters+7)>>3, false); -- 2.39.2