mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +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);
|
auto vrmode = VRMode::GetVRMode(mainview && toscreen);
|
||||||
const int eyeCount = vrmode->mEyeCount;
|
const int eyeCount = vrmode->mEyeCount;
|
||||||
screen->FirstEye();
|
screen->FirstEye();
|
||||||
|
hw_int_useindexedcolortextures = eyeCount > 1? false : *hw_useindexedcolortextures;
|
||||||
|
|
||||||
for (int eye_ix = 0; eye_ix < eyeCount; ++eye_ix)
|
for (int eye_ix = 0; eye_ix < eyeCount; ++eye_ix)
|
||||||
{
|
{
|
||||||
const auto& eye = vrmode->mEyes[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)
|
if (eyeCount - eye_ix > 1)
|
||||||
screen->NextEye(eyeCount);
|
screen->NextEye(eyeCount);
|
||||||
}
|
}
|
||||||
|
hw_int_useindexedcolortextures = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
Loading…
Reference in a new issue