Fixed: Clear scene background if sky filter is used

develop
Nimetu 5 years ago
parent 2a2431b1d3
commit 0f5dbc318c

@ -556,11 +556,11 @@ void clearBuffers()
}
// Sky is used to clear the frame buffer now, but if in line or point polygon mode, we should draw it
if (Driver->getPolygonMode() != UDriver::Filled)
if (Driver->getPolygonMode() != UDriver::Filled || !Filter3D[FilterSky])
{
if (!Driver->isLost())
{
Driver->clearBuffers (CRGBA(127, 127, 127));
Driver->clearBuffers (ClientCfg.BGColor);
}
}
}

Loading…
Cancel
Save