From fc29a4d30dc6329ad1104b5a22ad383bbed070f4 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 16 Aug 2009 16:21:37 +0000 Subject: [PATCH] honor alpha in showsurfaces 3 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9116 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.2