From: divverent Date: Sun, 16 Aug 2009 16:21:37 +0000 (+0000) Subject: honor alpha in showsurfaces 3 X-Git-Tag: xonotic-v0.1.0preview~1513 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fc29a4d30dc6329ad1104b5a22ad383bbed070f4;p=xonotic%2Fdarkplaces.git honor alpha in showsurfaces 3 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9116 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index b64f2580..8114fe40 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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;