WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 34508
getUniform will not work for fetching uniform array elements
https://bugs.webkit.org/show_bug.cgi?id=34508
Summary
getUniform will not work for fetching uniform array elements
Kenneth Russell
Reported
2010-02-02 18:21:26 PST
From code inspection, the implementation of getUniform will not work properly when fetching an element of a uniform array. The code needs to check the size of the WebGLActiveInfo coming back from getActiveUniform and, if it is greater than 1, iterate from 0 to that size, generating names like "foo[0]", "foo[1]", etc. to pass back in to getUniformLocation.
Attachments
patch
(32.38 KB, patch)
2010-06-24 17:55 PDT
,
Zhenyao Mo
no flags
Details
Formatted Diff
Diff
revised patch: fix style issues
(32.07 KB, patch)
2010-06-24 18:26 PDT
,
Zhenyao Mo
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Zhenyao Mo
Comment 1
2010-06-24 17:55:06 PDT
Created
attachment 59714
[details]
patch The gl-uniform-array.html test is copied from WebGL conformance tests. Have to fix some minor bugs to make the test green: 1) For a few functions, generate INVALID_OPERATION (instead of INVALID_VALUE) if resource is from another context. 2) useProgram(null) should work in Safari. Tested both Chromium and Safari in Mac.
WebKit Review Bot
Comment 2
2010-06-24 17:57:37 PDT
Attachment 59714
[details]
did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style', '--no-squash']" exit_code: 1 WebCore/html/canvas/WebGLRenderingContext.cpp:1558: An else statement can be removed when the prior "if" concludes with a return, break, continue or goto statement. [readability/control_flow] [4] WebCore/html/canvas/WebGLRenderingContext.cpp:1566: An else statement can be removed when the prior "if" concludes with a return, break, continue or goto statement. [readability/control_flow] [4] WebCore/html/canvas/WebGLRenderingContext.cpp:1574: An else statement can be removed when the prior "if" concludes with a return, break, continue or goto statement. [readability/control_flow] [4] Total errors found: 3 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Zhenyao Mo
Comment 3
2010-06-24 18:26:52 PDT
Created
attachment 59718
[details]
revised patch: fix style issues
Kenneth Russell
Comment 4
2010-06-25 17:23:28 PDT
Comment on
attachment 59718
[details]
revised patch: fix style issues Looks good to me. It isn't obvious to me that the incorrect-context-object-behaviour test changes are directly related to the code changes, so perhaps they should be split into a different bug, but in my opinion this isn't that big a deal.
Dimitri Glazkov (Google)
Comment 5
2010-06-25 19:56:05 PDT
Comment on
attachment 59718
[details]
revised patch: fix style issues ok.
WebKit Commit Bot
Comment 6
2010-06-25 21:53:36 PDT
Comment on
attachment 59718
[details]
revised patch: fix style issues Clearing flags on attachment: 59718 Committed
r61939
: <
http://trac.webkit.org/changeset/61939
>
WebKit Commit Bot
Comment 7
2010-06-25 21:53:41 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug