Skip to content

Commit

Permalink
Make context current before event handling
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Dec 19, 2018
1 parent d4c982c commit 9b44941
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions js/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ class Window extends EventEmitter {
event.stopPropagation = () => {};
}

this.makeCurrent();

super.emit(type, event);

}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Luis Blanco <luisblanco1337@gmail.com>",
"name": "glfw-raub",
"version": "2.0.0",
"version": "2.0.1",
"description": "GLFW for Node.js",
"license": "MIT",
"main": "index.js",
Expand Down

0 comments on commit 9b44941

Please sign in to comment.