- Fixed: Changed r_clearbuffer to do a little more than clear the top quarter of the screen. Still need to do an actual color fill - will do it later.

This commit is contained in:
raa-eruanna 2016-09-27 04:14:00 -04:00
parent 1b3f652abb
commit 1b7827342c

View file

@ -289,7 +289,12 @@ void FSoftwareRenderer::ErrorCleanup ()
void FSoftwareRenderer::ClearBuffer(int color)
{
memset(RenderTarget->GetBuffer(), color, RenderTarget->GetPitch() * RenderTarget->GetHeight());
// [SP] For now, for truecolor, this just outputs black. We'll figure out how to get something more meaningful
// later when this actually matters more. This is just to clear HOMs for now.
if (!r_swtruecolor)
memset(RenderTarget->GetBuffer(), color, RenderTarget->GetPitch() * RenderTarget->GetHeight());
else
memset(RenderTarget->GetBuffer(), 0, RenderTarget->GetPitch() * RenderTarget->GetHeight() * 4);
}
//===========================================================================