Browse Source

Remove Window::activateContext().

tags/v2.2.2
Andrew Belt 1 year ago
parent
commit
0b668e7a44
2 changed files with 0 additions and 6 deletions
  1. +0
    -1
      include/window/Window.hpp
  2. +0
    -5
      src/window/Window.cpp

+ 0
- 1
include/window/Window.hpp View File

@@ -73,7 +73,6 @@ struct Window {
void setSize(math::Vec size); void setSize(math::Vec size);
PRIVATE void run(); PRIVATE void run();
PRIVATE void step(); PRIVATE void step();
void activateContext();
/** Takes a screenshot of the screen and saves it to a PNG file. */ /** Takes a screenshot of the screen and saves it to a PNG file. */
PRIVATE void screenshot(const std::string& screenshotPath); PRIVATE void screenshot(const std::string& screenshotPath);
/** Saves a PNG image of all modules to `screenshotsDir/<plugin slug>/<module slug>.png`. /** Saves a PNG image of all modules to `screenshotsDir/<plugin slug>/<module slug>.png`.


+ 0
- 5
src/window/Window.cpp View File

@@ -530,11 +530,6 @@ void Window::step() {
} }




void Window::activateContext() {
glfwMakeContextCurrent(win);
}


static void flipBitmap(uint8_t* pixels, int width, int height, int depth) { static void flipBitmap(uint8_t* pixels, int width, int height, int depth) {
for (int y = 0; y < height / 2; y++) { for (int y = 0; y < height / 2; y++) {
int flipY = height - y - 1; int flipY = height - y - 1;


Loading…
Cancel
Save