Closed Bug 745298 Opened 12 years ago Closed 12 years ago

We need to log an error message when we call uniformNxx with more values than expected

Categories

(Core :: Graphics: CanvasWebGL, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 732233

People

(Reporter: ehsan.akhgari, Unassigned)

Details

(Whiteboard: webgl-next)

Attachments

(1 file)

Pseudo-code:

var x = new Float32Array(16);
gl.uniform4fv(location, x);

Chrome logs:
GL_INVALID_OPERATION : glUniform4fv: count > 1 for non-array

We don't log anything.
Whiteboard: webgl-next
This is exactly what bug 732233 fixed. This now generates an INVALID_OPERATION with this JS warning:

[23:13:04.532] Error: WebGL: Uniform4fv: expected an array of length exactly 4 (since this uniform is not an array uniform), got an array of length 16 @ file:///hack/vrac/ehsan.html:108
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: