CCubeRenderer: Fix missing calls in DrawAreaGeometry

This commit is contained in:
Luke Street 2022-06-29 20:56:30 -04:00
parent e1d2ff7f2d
commit ee3902db58
1 changed files with 2 additions and 0 deletions

View File

@ -468,6 +468,7 @@ void CCubeRenderer::DrawAreaGeometry(s32 areaIdx, s32 mask, s32 targetMask) {
continue; continue;
} }
model->SetArraysCurrent();
for (const auto* surf = model->GetFirstUnsortedSurface(); surf != nullptr; surf = surf->GetNextSurface()) { for (const auto* surf = model->GetFirstUnsortedSurface(); surf != nullptr; surf = surf->GetNextSurface()) {
model->DrawSurface(*surf, flags); model->DrawSurface(*surf, flags);
} }
@ -478,6 +479,7 @@ void CCubeRenderer::DrawAreaGeometry(s32 areaIdx, s32 mask, s32 targetMask) {
} }
} }
SetupCGraphicsState();
x318_30_inAreaDraw = false; x318_30_inAreaDraw = false;
} }