]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix visual regression where parts of the Xonotic menu lacked transparency.
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 25 May 2020 12:51:08 +0000 (12:51 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 25 May 2020 12:51:08 +0000 (12:51 +0000)
Set ent->render.alpha to its old value of 0.999999f. This doesn't seem to break
anything else, or anything that was recently fixed. There's probably a better
fix, but this is simple and seems to work for now.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12572 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c

index e710a1ca61bee9b2b48dbfedfcc623b3c93c53b2..2aede84a19ede8ea906900938d8a113271a4db19 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -2401,7 +2401,7 @@ static void CL_MeshEntities_Init(void)
                ent->state_current.active = true;
                ent->render.model = cl_meshentitymodels + i;
                Mod_Mesh_Create(ent->render.model, cl_meshentitynames[i]);      
-               ent->render.alpha = 1;
+               ent->render.alpha = 0.999999f;
                ent->render.flags = RENDER_SHADOW | RENDER_LIGHT;
                ent->render.framegroupblend[0].lerp = 1;
                ent->render.frameblend[0].lerp = 1;