mirror of https://github.com/AxioDL/metaforce.git
CBooRenderer: Remove usages of const_cast
We can just remove the const qualifier on model here.
This commit is contained in:
parent
57d9e0f294
commit
b89069e1b8
|
@ -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<CBooModel&>(model).UpdateUniformData(flags, nullptr, nullptr, 2);
|
||||
const_cast<CBooModel&>(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);
|
||||
|
|
Loading…
Reference in New Issue