mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 23:32:02 +00:00
- 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:
parent
1b3f652abb
commit
1b7827342c
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
Loading…
Reference in a new issue