Skip to content

Commit

Permalink
Fixed scene transition bug
Browse files Browse the repository at this point in the history
  • Loading branch information
damacaa committed Oct 4, 2024
1 parent 959d0a1 commit 8dd8450
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,16 @@ int main()
// Capture window input
Input::update(renderer.getWindow(), width, height);

auto& scene = sceneManager.getCurrentScene();

// Update scene logic and physics
sceneManager.getCurrentScene().update(delta, time);
scene.update(delta, time);

// Clear input
Input::clear();

// Render scene
renderer.render(sceneManager.getCurrentScene(), time);
renderer.render(scene, time);
}
}

0 comments on commit 8dd8450

Please sign in to comment.