]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fixed combine overbright behavior
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 10 Sep 2002 16:54:12 +0000 (16:54 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 10 Sep 2002 16:54:12 +0000 (16:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2347 d7cf8633-e32d-0410-b094-e92efae38249

gl_backend.c

index b89fdaf962e3e11ba5ab243363babdc5dc94ad2d..ad6f24c9189819f201f11d59b498dbcaa3aee925 100644 (file)
@@ -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)
        {