- Fixed crash rendering 3D floors without ceiling or floor textures in software.

This commit is contained in:
drfrag 2020-06-08 18:50:10 +02:00 committed by Christoph Oelckers
parent 6371fa91f9
commit 68e0e52aaf

View file

@ -115,7 +115,8 @@ namespace swrenderer
else // regular flat
{
auto tex = GetPalettedSWTexture(picnum, true);
if (tex == nullptr)
return;
if (!masked && !additive)
{ // If we're not supposed to see through this plane, draw it opaque.
alpha = OPAQUE;