From b89069e1b80963bfaa81f377e46277425a4451c0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 9 Apr 2020 20:22:47 -0400 Subject: [PATCH] CBooRenderer: Remove usages of const_cast We can just remove the const qualifier on model here. --- Runtime/Graphics/CBooRenderer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/Graphics/CBooRenderer.cpp b/Runtime/Graphics/CBooRenderer.cpp index 1007d117c..a0f9b4f14 100644 --- a/Runtime/Graphics/CBooRenderer.cpp +++ b/Runtime/Graphics/CBooRenderer.cpp @@ -1397,9 +1397,9 @@ void CBooRenderer::DrawOverlappingWorldModelShadows(int alphaVal, const std::vec return; flags.x4_color.r() = alphaVal / 255.f; - const CBooModel& model = *item.x10_models[wordModel + j]; - const_cast(model).UpdateUniformData(flags, nullptr, nullptr, 2); - const_cast(model).VerifyCurrentShader(0); + CBooModel& model = *item.x10_models[wordModel + j]; + model.UpdateUniformData(flags, nullptr, nullptr, 2); + model.VerifyCurrentShader(0); for (const CBooSurface* surf = model.x38_firstUnsortedSurface; surf; surf = surf->m_next) if (surf->GetBounds().intersects(aabb)) model.DrawSurface(*surf, flags);