test it does not warn about uniforms in UBOs when linking ‣
TypeError: Cannot read properties of null (reading 'setConfiguration')
at Context.<anonymous> (https://greggman.github.io/webgl-lint/test/tests/uniform-buffer-tests.js:10:9)
at callFn (https://greggman.github.io/webgl-lint/test/mocha.js:13124:23)
at Runnable$3.run (https://greggman.github.io/webgl-lint/test/mocha.js:13112:7)
at Runner.runTest (https://greggman.github.io/webgl-lint/test/mocha.js:14657:12)
at https://greggman.github.io/webgl-lint/test/mocha.js:14780:14
at next (https://greggman.github.io/webgl-lint/test/mocha.js:14572:16)
at https://greggman.github.io/webgl-lint/test/mocha.js:14582:9
at next (https://greggman.github.io/webgl-lint/test/mocha.js:14465:16)
at https://greggman.github.io/webgl-lint/test/mocha.js:14550:7
at timeslice (https://greggman.github.io/webgl-lint/test/mocha.js:20501:29)
const {gl, ext, tagObject} = createContext2();
ext.setConfiguration({failUndefinedUniforms: true});
const prg = twgl.createProgram(gl, [
`#version 300 es
uniform Foo {
vec4 bar;
vec4 moo;
};
void main() {
gl_Position = bar + moo;
}
`,
`#version 300 es
precision mediump float;
uniform vec4 pointColor;
out vec4 fragColor;
void main() {
fragColor = pointColor;
}
`,
]);
tagObject(prg, 'ubo program');
gl.useProgram(prg);
assertEqual(gl.getError(), gl.NO_ERROR);