Bug 34669 - getUniformLocation should return null for invalid uniforms
Summary: getUniformLocation should return null for invalid uniforms
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Vangelis Kokkevis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-05 17:27 PST by Kenneth Russell
Modified: 2010-03-04 14:24 PST (History)
3 users (show)

See Also:


Attachments
Proposed patch (3.81 KB, patch)
2010-03-03 18:41 PST, Vangelis Kokkevis
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Russell 2010-02-05 17:27:49 PST
WebGLRenderingContext::getUniformLocation should return null for invalid uniforms. Currently it will return a WebGLUniformLocation object wrapping the number -1, which is poor behavior. As a corollary, the WebGL specification should be updated to state this behavior explicitly.
Comment 1 Vangelis Kokkevis 2010-03-03 18:41:26 PST
Created attachment 49977 [details]
Proposed patch
Comment 2 WebKit Commit Bot 2010-03-04 01:41:35 PST
Comment on attachment 49977 [details]
Proposed patch

Clearing flags on attachment: 49977

Committed r55514: <http://trac.webkit.org/changeset/55514>
Comment 3 WebKit Commit Bot 2010-03-04 01:41:39 PST
All reviewed patches have been landed.  Closing bug.
Comment 4 Vangelis Kokkevis 2010-03-04 14:24:55 PST
WebGL spec updated accordingly in rev 10594