Skip to content

Commit 9b44941

Browse files
committedDec 19, 2018
Make context current before event handling
1 parent d4c982c commit 9b44941

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎js/window.js

+2
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ class Window extends EventEmitter {
310310
event.stopPropagation = () => {};
311311
}
312312

313+
this.makeCurrent();
314+
313315
super.emit(type, event);
314316

315317
}

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": "Luis Blanco <luisblanco1337@gmail.com>",
33
"name": "glfw-raub",
4-
"version": "2.0.0",
4+
"version": "2.0.1",
55
"description": "GLFW for Node.js",
66
"license": "MIT",
77
"main": "index.js",

0 commit comments

Comments
 (0)