mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 20:20:40 +00:00
- fixed sky rendering in palette emulation mode.
The sky dome drawer cannot work with indexed textures, but since they are fullbright anyway we can just temporarily disable it.
This commit is contained in:
parent
30c7dbd579
commit
16ad5f0cc8
1 changed files with 4 additions and 1 deletions
|
@ -34,6 +34,8 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
void HWSkyPortal::DrawContents(HWDrawInfo *di, FRenderState &state)
|
||||
{
|
||||
int indexed = hw_int_useindexedcolortextures;
|
||||
hw_int_useindexedcolortextures = false; // this code does not work with indexed textures.
|
||||
bool drawBoth = false;
|
||||
auto &vp = di->Viewpoint;
|
||||
|
||||
|
@ -101,6 +103,7 @@ void HWSkyPortal::DrawContents(HWDrawInfo *di, FRenderState &state)
|
|||
|
||||
//di->lightmode = oldlightmode;
|
||||
state.SetDepthClamp(oldClamp);
|
||||
}
|
||||
hw_int_useindexedcolortextures = indexed;
|
||||
}
|
||||
|
||||
const char *HWSkyPortal::GetName() { return "Sky"; }
|
||||
|
|
Loading…
Reference in a new issue