diff --git a/src/common/engine/startupinfo.h b/src/common/engine/startupinfo.h index c19d99537..d24e07d68 100644 --- a/src/common/engine/startupinfo.h +++ b/src/common/engine/startupinfo.h @@ -9,6 +9,8 @@ struct FStartupInfo uint32_t FgColor; // Foreground color for title banner uint32_t BkColor; // Background color for title banner FString Song; + FString con; + FString def; int Type; int LoadLights = -1; int LoadBrightmaps = -1; diff --git a/src/common/rendering/hwrenderer/data/hw_renderstate.h b/src/common/rendering/hwrenderer/data/hw_renderstate.h index 54aab25f8..4751cba0b 100644 --- a/src/common/rendering/hwrenderer/data/hw_renderstate.h +++ b/src/common/rendering/hwrenderer/data/hw_renderstate.h @@ -555,18 +555,28 @@ public: mRenderStyle = rs; } + auto GetDepthBias() + { + return mBias; + } + void SetDepthBias(float a, float b) { + mBias.mChanged = mBias.mFactor != a || mBias.mUnits != b; mBias.mFactor = a; mBias.mUnits = b; - mBias.mChanged = true; + } + + void SetDepthBias(FDepthBiasState& bias) + { + SetDepthBias(bias.mFactor, bias.mUnits); } void ClearDepthBias() { + mBias.mChanged = mBias.mFactor != 0 || mBias.mUnits != 0; mBias.mFactor = 0; mBias.mUnits = 0; - mBias.mChanged = true; } private: