Browse Source

Activate GL context after polling events each frame, bump version

v0.6
Andrew Belt 6 years ago
parent
commit
7d8c04c993
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      Makefile
  2. +1
    -0
      src/window.cpp

+ 1
- 1
Makefile View File

@@ -1,5 +1,5 @@
RACK_DIR ?= . RACK_DIR ?= .
VERSION = 0.6.2b
VERSION = 0.6.2c


FLAGS += \ FLAGS += \
-Iinclude \ -Iinclude \


+ 1
- 0
src/window.cpp View File

@@ -439,6 +439,7 @@ void windowRun() {


// Poll events // Poll events
glfwPollEvents(); glfwPollEvents();
glfwMakeContextCurrent(gWindow);
{ {
double xpos, ypos; double xpos, ypos;
glfwGetCursorPos(gWindow, &xpos, &ypos); glfwGetCursorPos(gWindow, &xpos, &ypos);


Loading…
Cancel
Save