Skip to content

Commit

Permalink
Make gl context aware
Browse files Browse the repository at this point in the history
  • Loading branch information
dhritzkiv committed Jan 7, 2020
1 parent 8667ce0 commit b2a9cee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/native/bindings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -488,4 +488,8 @@ NAN_MODULE_INIT(Init) {
Nan::Export(target, "setError", WebGLRenderingContext::SetError);
}

#if NODE_MAJOR_VERSION >= 10
NAN_MODULE_WORKER_ENABLED(webgl, Init)
#else
NODE_MODULE(webgl, Init)
#endif

0 comments on commit b2a9cee

Please sign in to comment.