mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- r_clearcolor did not consider that the base palette's alpha is not set.
This commit is contained in:
parent
cef6ddca6e
commit
870890d8cf
1 changed files with 3 additions and 2 deletions
|
@ -107,11 +107,12 @@ namespace swrenderer
|
|||
}
|
||||
else
|
||||
{
|
||||
uint32_t bgracolor = GPalette.BaseColors[clearcolor].d;
|
||||
PalEntry bgracolor = GPalette.BaseColors[clearcolor];
|
||||
bgracolor.a = 255;
|
||||
int size = viewport->RenderTarget->GetPitch() * viewport->RenderTarget->GetHeight();
|
||||
uint32_t *dest = (uint32_t *)viewport->RenderTarget->GetPixels();
|
||||
for (int i = 0; i < size; i++)
|
||||
dest[i] = bgracolor;
|
||||
dest[i] = bgracolor.d;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue