- fixed: FGLTexture::CreateTexBuffer needs to be more careful with setting the texture's translucency information.

First, if it has already been determined the value should be left alone and second, for translated textures the generated buffer is inconclusive so in that case it cannot be used at all.
This commit is contained in:
Christoph Oelckers 2016-12-29 14:33:53 +01:00
commit a3070e8846
2 changed files with 9 additions and 5 deletions

View file

@ -916,7 +916,7 @@ void GLSprite::Process(AActor* thing, sector_t * sector, int thruportal)
RenderStyle = LegacyRenderStyles[STYLE_Translucent];
OverrideShader = gl_fuzztype + 4;
trans = 0.99f; // trans may not be 1 here
hw_styleflags |= STYLEHW_NoAlphaTest;
hw_styleflags = STYLEHW_NoAlphaTest;
}
else
{