From 4bf6b8dad9923d6f3687e8ced72a4eda6a56220d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 2 Jan 2022 20:28:24 +0000 Subject: No need to pass GameState around, it has a global pointer --- ui/window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui/window.cpp') diff --git a/ui/window.cpp b/ui/window.cpp index 6a263aa..74a3a2f 100644 --- a/ui/window.cpp +++ b/ui/window.cpp @@ -77,18 +77,18 @@ Window::glContext() const } void -Window::refresh(const GameState * gameState) const +Window::refresh() const { SDL_GL_MakeCurrent(m_window, glContext()); clear(0.0F, 0.0F, 0.0F, 1.0F); - render(gameState); + render(); swapBuffers(); } void -Window::render(const GameState *) const +Window::render() const { glDisable(GL_DEPTH_TEST); uiComponents.apply(&UIComponent::render, uiShader, UIComponent::Position {}); -- cgit v1.2.3