From: havoc Date: Tue, 10 Sep 2002 16:54:12 +0000 (+0000) Subject: fixed combine overbright behavior X-Git-Tag: RELEASE_0_2_0_RC1~259 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3a84ee2a4a69143708e7e033761408a64cf63bd1;p=xonotic%2Fdarkplaces.git fixed combine overbright behavior git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2347 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_backend.c b/gl_backend.c index b89fdaf9..ad6f24c9 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -810,9 +810,16 @@ void R_Mesh_State(const rmeshstate_t *m) texturergbscale[i] = 1; } if (overbright) + { for (i = backendunits - 1;i >= 0;i--) + { if (m->tex[i]) + { texturergbscale[i] = 4; + break; + } + } + } if (backendunits > 1) {