mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 17:01:03 +00:00
- fixed creation of true color textures and disabled fog in palette mode.
The fog should go away entirely but in palette mode it made everything too dark.
This commit is contained in:
parent
2ed722f329
commit
00d59459a1
5 changed files with 70 additions and 14 deletions
|
@ -189,7 +189,7 @@ void PaletteManager::BindPalette(int index)
|
|||
{
|
||||
auto p = GLInterface.NewTexture();
|
||||
p->CreateTexture(256, 1, false, false);
|
||||
p->LoadTexture((uint8_t*)transientpalette.colors);
|
||||
p->LoadTexture((uint8_t*)transientpalette.colors, true);
|
||||
p->SetSampler(Sampler2DNoFilter);
|
||||
transientpalette.paltexture = p;
|
||||
}
|
||||
|
@ -205,7 +205,7 @@ void PaletteManager::BindPalette(int index)
|
|||
{
|
||||
auto p = GLInterface.NewTexture();
|
||||
p->CreateTexture(256, 1, false, false);
|
||||
p->LoadTexture((uint8_t*)palettes[uindex].colors);
|
||||
p->LoadTexture((uint8_t*)palettes[uindex].colors, true);
|
||||
p->SetSampler(Sampler2DNoFilter);
|
||||
palettes[uindex].paltexture = p;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue