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);