Skip to content

Commit dd19575

Browse files
committed
Try windows mesa 13
1 parent c7f81ed commit dd19575

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

examples/knot.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import node3d from '../index.js';
44
const { init, addThreeHelpers } = node3d;
55
const { doc, gl, loop, Screen } = init({
66
isGles3: true,
7+
// isGles3: false, // - works too
78
vsync: true,
89
autoEsc: true,
910
autoFullscreen: true,

js/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ const _init = (_opts = {}) => {
6363
code.replace(
6464
/^\s*?(#version|precision).*?($|;)/gm, ''
6565
).replace(
66-
/^/, '#version 120\n'
66+
/^/, '#extension GL_ARB_shading_language_420pack : require\n'
67+
).replace(
68+
/^/, '#extension GL_ARB_explicit_attrib_location : enable\n'
69+
).replace(
70+
/^/, '#version 140\n'
6771
).replace(
6872
/gl_FragDepthEXT/g, 'gl_FragDepth'
6973
).replace(

test/init.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ const initOptsLinux = {
1010
};
1111
const initOpts = {
1212
isGles3: false,
13-
isWebGL2: false,
14-
major: 3,
15-
minor: 2,
13+
major: 2,
14+
minor: 1,
1615
};
1716

1817
if (platform === 'darwin') {

0 commit comments

Comments
 (0)