From 124356b4e79514d3b47e8b8b3112b35a6c00ad54 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 9 Apr 2020 21:44:46 -0400 Subject: [PATCH] CSimpleShadow: Remove mutable specifier on m_filter This is no longer necessary now that we can remove the const qualifier on Render(). --- Runtime/Graphics/CSimpleShadow.cpp | 2 +- Runtime/Graphics/CSimpleShadow.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/Graphics/CSimpleShadow.cpp b/Runtime/Graphics/CSimpleShadow.cpp index 7beb2d5b9..8e9f6164c 100644 --- a/Runtime/Graphics/CSimpleShadow.cpp +++ b/Runtime/Graphics/CSimpleShadow.cpp @@ -27,7 +27,7 @@ zeus::CAABox CSimpleShadow::GetBounds() const { {x0_xf.origin.x() + extent, x0_xf.origin.y() + extent, x0_xf.origin.z() + extent}}; } -void CSimpleShadow::Render(const TLockedToken& tex) const { +void CSimpleShadow::Render(const TLockedToken& tex) { if (!x48_24_collision) return; SCOPED_GRAPHICS_DEBUG_GROUP("CSimpleShadow::Render", zeus::skGrey); diff --git a/Runtime/Graphics/CSimpleShadow.hpp b/Runtime/Graphics/CSimpleShadow.hpp index 43f368a70..ca6736f7e 100644 --- a/Runtime/Graphics/CSimpleShadow.hpp +++ b/Runtime/Graphics/CSimpleShadow.hpp @@ -22,7 +22,7 @@ class CSimpleShadow { bool x48_24_collision : 1; bool x48_25_alwaysCalculateRadius : 1; bool x48_26_radiusCalculated : 1; - mutable std::optional m_filter; + std::optional m_filter; public: CSimpleShadow(float scale, float userAlpha, float maxObjHeight, float displacement); @@ -33,7 +33,7 @@ public: float GetMaxObjectHeight() const { return x40_maxObjHeight; } void SetUserAlpha(float a) { x38_userAlpha = a; } const zeus::CTransform& GetTransform() const { return x0_xf; } - void Render(const TLockedToken& tex) const; + void Render(const TLockedToken& tex); void Calculate(const zeus::CAABox& aabb, const zeus::CTransform& xf, const CStateManager& mgr); }; } // namespace urde