- added the flat dispatcher for textured lighting.

This commit is contained in:
Christoph Oelckers 2016-05-04 23:07:16 +02:00
commit 4412f99b38
3 changed files with 32 additions and 0 deletions

View file

@ -463,6 +463,10 @@ inline void GLFlat::PutFlat(bool fog)
{
Colormap.Clear();
}
if (gl.lightmethod == LM_SOFTWARE)
{
if (PutFlatCompat(fog)) return;
}
if (renderstyle!=STYLE_Translucent || alpha < 1.f - FLT_EPSILON || fog || gltexture == NULL)
{
// translucent 3D floors go into the regular translucent list, translucent portals go into the translucent border list.