Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Fixed crash rendering 3D floors without ceiling or floor textures i…
…n software.
  • Loading branch information
drfrag666 authored and coelckers committed Jun 8, 2020
1 parent 6371fa9 commit 68e0e52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rendering/swrenderer/plane/r_visibleplane.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 68e0e52

Please sign in to comment.