Bug 35790 - getUniformLocation return object instead of number
Summary: getUniformLocation return object instead of number
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Kenneth Russell
Depends on:
Reported: 2010-03-05 07:57 PST by Microcan
Modified: 2010-06-08 11:41 PDT (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Microcan 2010-03-05 07:57:20 PST
The latest WebKit has changed the function gl.getUniformLocation. This function now returns an object. According to the OpenGL ES 2.0 standard it should return -1 if a uniform location does not exist. If the uniform location does exist it returns an object. It should return an index number you can use in gl.uniformMatrix4fv.
Comment 1 Microcan 2010-03-05 07:58:03 PST
Please fix so we can test in WebKit again.
Comment 2 Kenneth Russell 2010-06-08 11:41:33 PDT
This is a decision that has been made in the WebGL specification and discussed on the public mailing list.