mirror of
https://github.com/gpujs/gpu.js.git
synced 2025-12-08 20:35:56 +00:00
Change `HTMLImageArray` render strategy to `gl.NEAREST`, like all the others Let `WebGL2FunctionNode` extend `WebGLFunctionNode` and lighten Remove all the different html pages associated with tests, and just use one file to handle them and use qunit for filtering them Bump version number
9 lines
388 B
JavaScript
9 lines
388 B
JavaScript
QUnit.test('Issue #270 WebGlKernel getUniformLocation caches falsey - gpu', () => {
|
|
const kernel = new GPU.WebGLKernel('', {});
|
|
kernel.programUniformLocationCache.test = false;
|
|
kernel._webGl = {};
|
|
kernel._webGl.getUniformLocation = () => {
|
|
throw new Error('tried to get getUniformLocation when falsey');
|
|
};
|
|
QUnit.assert.equal(kernel.getUniformLocation('test'), false);
|
|
}); |