From: divverent Date: Thu, 24 Jun 2010 12:30:09 +0000 (+0000) Subject: cameras: invert the correct coordinate to fix up texcoords X-Git-Tag: xonotic-v0.1.0preview~230^2~231 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fd7fb6ed9cbba204fa722f8a684784889f463991;p=xonotic%2Fdarkplaces.git 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 --- 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);