KhronosGroup / KhronosGroup/WebGL
Test non-finite values with Float32List entrypoints
Open
- Dominant language
- HTML
- Stars
- 2.9k
- Forks
- 703
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 4
Description
Chromium fails on the following call; Firefox and WebKit do not.
```js
// Uncaught TypeError: Failed to execute 'uniform1fv' on 'WebGLRenderingContext':
// The provided float value is non-finite.
gl.uniform1fv(location, [NaN]);
```
Relevant WebIDL entries:
```
typedef unrestricted float GLfloat;
typedef ([AllowShared] Float32Array or sequence) Float32List;
undefined uniform1fv(WebGLUniformLocation? location, Float32List v);
```
@kenrussell FYI
Contributor guide
Assessment
This issue has not been assessed yet.