Fixed: Clear scene background if sky filter is used

fix-media-player
Nimetu 5 years ago
parent 5250d22706
commit 24fd5a6230

@ -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