]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
honor alpha in showsurfaces 3
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 16 Aug 2009 16:21:37 +0000 (16:21 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 16 Aug 2009 16:21:37 +0000 (16:21 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9116 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index b64f25809a5bf5e14523d1c90af05c9a445fd0e4..8114fe40dc0fdc2417614b80ace3d68cce71248a 100644 (file)
@@ -6647,7 +6647,10 @@ static void R_DrawTextureSurfaceList_ShowSurfaces3(int texturenumsurfaces, msurf
        R_SetupGenericShader(false);
 
        if(rsurface.texture && rsurface.texture->currentskinframe)
+       {
                memcpy(c, rsurface.texture->currentskinframe->avgcolor, sizeof(c));
+               c[3] *= rsurface.texture->currentalpha;
+       }
        else
        {
                c[0] = 1;