From ae99a2124da32e4d2474e6dc6cf54322b688b743 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 24 Mar 2025 18:10:30 +0000 Subject: Use is_base_of_v instead of is_convertible_v to choose OtherObjects --- ui/gameMainWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui') diff --git a/ui/gameMainWindow.cpp b/ui/gameMainWindow.cpp index 07901b3..f8c568b 100644 --- a/ui/gameMainWindow.cpp +++ b/ui/gameMainWindow.cpp @@ -80,7 +80,7 @@ GameMainWindow::content(const SceneShader & shader, const Frustum & frustum) con renderable->render(shader, frustum); } } - gameState->world.apply(&Renderable::render, shader, frustum); + gameState->world.apply(&Renderable::render, shader, frustum); uiComponents.apply(&WorldOverlay::render, shader, frustum); } @@ -93,7 +93,7 @@ GameMainWindow::environment(const SceneShader &, const SceneRenderer & r) const void GameMainWindow::lights(const SceneShader & shader) const { - gameState->world.apply(&Renderable::lights, shader); + gameState->world.apply(&Renderable::lights, shader); } void @@ -104,5 +104,5 @@ GameMainWindow::shadows(const ShadowMapper & shadowMapper, const Frustum & frust renderable->shadows(shadowMapper, frustum); } } - gameState->world.apply(&Renderable::shadows, shadowMapper, frustum); + gameState->world.apply(&Renderable::shadows, shadowMapper, frustum); } -- cgit v1.2.3