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)
Tracking
()
RESOLVED
DUPLICATE
of bug 732233
People
(Reporter: ehsan.akhgari, Unassigned)
Details
(Whiteboard: webgl-next)
Attachments
(1 file)
2.41 KB,
text/html
|
Details |
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.
Reporter | ||
Updated•12 years ago
|
Whiteboard: webgl-next
Comment 1•12 years ago
|
||
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
Comment 2•12 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•