Skip to content

Test non-finite values with Float32List entrypoints #3687

@lexaknyazev

Description

@lexaknyazev

Chromium fails on the following call; Firefox and WebKit do not.

// 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<GLfloat>) Float32List;
undefined uniform1fv(WebGLUniformLocation? location, Float32List v);

@kenrussell FYI

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions