CSimpleShadow: Remove mutable specifier on m_filter

This is no longer necessary now that we can remove the const qualifier
on Render().
This commit is contained in:
Lioncash 2020-04-09 21:44:46 -04:00
parent cd0a3780c0
commit 124356b4e7
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ zeus::CAABox CSimpleShadow::GetBounds() const {
{x0_xf.origin.x() + extent, x0_xf.origin.y() + extent, x0_xf.origin.z() + extent}}; {x0_xf.origin.x() + extent, x0_xf.origin.y() + extent, x0_xf.origin.z() + extent}};
} }
void CSimpleShadow::Render(const TLockedToken<CTexture>& tex) const { void CSimpleShadow::Render(const TLockedToken<CTexture>& tex) {
if (!x48_24_collision) if (!x48_24_collision)
return; return;
SCOPED_GRAPHICS_DEBUG_GROUP("CSimpleShadow::Render", zeus::skGrey); SCOPED_GRAPHICS_DEBUG_GROUP("CSimpleShadow::Render", zeus::skGrey);

View File

@ -22,7 +22,7 @@ class CSimpleShadow {
bool x48_24_collision : 1; bool x48_24_collision : 1;
bool x48_25_alwaysCalculateRadius : 1; bool x48_25_alwaysCalculateRadius : 1;
bool x48_26_radiusCalculated : 1; bool x48_26_radiusCalculated : 1;
mutable std::optional<CTexturedQuadFilter> m_filter; std::optional<CTexturedQuadFilter> m_filter;
public: public:
CSimpleShadow(float scale, float userAlpha, float maxObjHeight, float displacement); CSimpleShadow(float scale, float userAlpha, float maxObjHeight, float displacement);
@ -33,7 +33,7 @@ public:
float GetMaxObjectHeight() const { return x40_maxObjHeight; } float GetMaxObjectHeight() const { return x40_maxObjHeight; }
void SetUserAlpha(float a) { x38_userAlpha = a; } void SetUserAlpha(float a) { x38_userAlpha = a; }
const zeus::CTransform& GetTransform() const { return x0_xf; } const zeus::CTransform& GetTransform() const { return x0_xf; }
void Render(const TLockedToken<CTexture>& tex) const; void Render(const TLockedToken<CTexture>& tex);
void Calculate(const zeus::CAABox& aabb, const zeus::CTransform& xf, const CStateManager& mgr); void Calculate(const zeus::CAABox& aabb, const zeus::CTransform& xf, const CStateManager& mgr);
}; };
} // namespace urde } // namespace urde