We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cf52e0 commit 66fa443Copy full SHA for 66fa443
test/init.js
@@ -4,12 +4,11 @@ const glfw = require('glfw-raub');
4
5
const { init, addThreeHelpers } = require('..');
6
7
-const initOpts = {
+const initOptsLinux = {
8
isGles3: true,
9
isWebGL2: true,
10
};
11
-const initOptsMac = {
12
- ...initOpts,
+const initOpts = {
13
isGles3: false,
14
isWebGL2: false,
15
major: 2,
@@ -22,7 +21,7 @@ if (platform === 'darwin') {
22
21
// glfw.windowHint(glfw.CONTEXT_RENDERER, glfw.SOFTWARE_RENDERER);
23
}
24
25
-const inited = init(platform === 'darwin' ? initOptsMac : initOpts);
+const inited = init(platform === 'linux' ? initOptsLinux : initOpts);
26
addThreeHelpers(three, inited.gl);
27
28
module.exports = inited;
0 commit comments