KhronosGroup / KhronosGroup/WebGL

Test non-finite values with Float32List entrypoints

Open
#3,687 2 comments 0 reactions 1 assignee Claimed by @kenrussell View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.