Skip to content

Commit eb3ca49

Browse files
committed
Try stencil bits
1 parent 1c7e3a2 commit eb3ca49

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/init.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const { platform } = require('node:process');
22
const three = require('three');
3+
const glfw = require('glfw-raub');
34

45
const { init, addThreeHelpers } = require('..');
56

@@ -13,6 +14,10 @@ const initOptsMac = {
1314
isWebGL2: false,
1415
};
1516

17+
if (platform === 'darwin') {
18+
glfw.windowHint(glfw.STENCIL_BITS, 8);
19+
}
20+
1621
const inited = init(platform === 'darwin' ? initOptsMac : initOpts);
1722
addThreeHelpers(three, inited.gl);
1823

0 commit comments

Comments
 (0)