From 4f22d5daca7d570dbd3caf3da18448350bf5f148 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 14 Dec 2021 02:11:02 +0000 Subject: Single glContext shared between windows Created by the first window, includes simplified refresh/render for single control point --- ui/gameMainWindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ui/gameMainWindow.cpp') diff --git a/ui/gameMainWindow.cpp b/ui/gameMainWindow.cpp index 4421098..7d5e19b 100644 --- a/ui/gameMainWindow.cpp +++ b/ui/gameMainWindow.cpp @@ -33,9 +33,8 @@ GameMainWindow::tick(TickDuration) } void -GameMainWindow::Refresh(const GameState * gameState) const +GameMainWindow::render(const GameState * gameState) const { - SDL_GL_MakeCurrent(m_window, m_glContext); glEnable(GL_DEPTH_TEST); gameState->world.apply(&Renderable::render, shader); glDisable(GL_DEPTH_TEST); -- cgit v1.2.3