mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
- enable palette emulation for the new renderer.
This commit is contained in:
parent
be8df3488d
commit
87efc84c84
1 changed files with 3 additions and 0 deletions
|
@ -117,6 +117,8 @@ void RenderViewpoint(FRenderViewpoint& mainvp, IntRect* bounds, float fov, float
|
|||
auto vrmode = VRMode::GetVRMode(mainview && toscreen);
|
||||
const int eyeCount = vrmode->mEyeCount;
|
||||
screen->FirstEye();
|
||||
hw_int_useindexedcolortextures = eyeCount > 1? false : *hw_useindexedcolortextures;
|
||||
|
||||
for (int eye_ix = 0; eye_ix < eyeCount; ++eye_ix)
|
||||
{
|
||||
const auto& eye = vrmode->mEyes[eye_ix];
|
||||
|
@ -164,6 +166,7 @@ void RenderViewpoint(FRenderViewpoint& mainvp, IntRect* bounds, float fov, float
|
|||
if (eyeCount - eye_ix > 1)
|
||||
screen->NextEye(eyeCount);
|
||||
}
|
||||
hw_int_useindexedcolortextures = false;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
Loading…
Reference in a new issue