Bug 35790

Summary: getUniformLocation return object instead of number
Product: WebKit Reporter: Microcan <info>
Component: WebGLAssignee: Kenneth Russell <kbr>
Status: RESOLVED WONTFIX    
Severity: Normal CC: cedricv, cmarrin, kbr
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   

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.