From 0b668e7a44cb7ca87ab218ce6c21d7551a4abb2d Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sun, 18 Dec 2022 17:31:23 -0500 Subject: [PATCH] Remove Window::activateContext(). --- include/window/Window.hpp | 1 - src/window/Window.cpp | 5 ----- 2 files changed, 6 deletions(-) diff --git a/include/window/Window.hpp b/include/window/Window.hpp index 3c9e7fbc..9dc5b537 100644 --- a/include/window/Window.hpp +++ b/include/window/Window.hpp @@ -73,7 +73,6 @@ struct Window { void setSize(math::Vec size); PRIVATE void run(); PRIVATE void step(); - void activateContext(); /** Takes a screenshot of the screen and saves it to a PNG file. */ PRIVATE void screenshot(const std::string& screenshotPath); /** Saves a PNG image of all modules to `screenshotsDir//.png`. diff --git a/src/window/Window.cpp b/src/window/Window.cpp index 7d277835..313fe722 100644 --- a/src/window/Window.cpp +++ b/src/window/Window.cpp @@ -530,11 +530,6 @@ void Window::step() { } -void Window::activateContext() { - glfwMakeContextCurrent(win); -} - - static void flipBitmap(uint8_t* pixels, int width, int height, int depth) { for (int y = 0; y < height / 2; y++) { int flipY = height - y - 1;