From 3a84ee2a4a69143708e7e033761408a64cf63bd1 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 10 Sep 2002 16:54:12 +0000 Subject: [PATCH] fixed combine overbright behavior git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2347 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_backend.c | 7 +++++++ 1 file changed, 7 insertions(+) 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) { -- 2.39.2