Fix glGetActiveUniform/Attrib crashes due to state inconsistency
commit44ad5ecc3abf8f31d7e55a9ece5cea30a710fd77
authorzmo <zmo@chromium.org>
Mon, 9 Mar 2015 22:13:19 +0000 (9 15:13 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 9 Mar 2015 22:13:48 +0000 (9 22:13 +0000)
tree3d194a064a5f3cb618baa349b44e63b6aff6a0a1
parent8e521af7a52ec6eee8fb1dee6c4a6749a79821fe
Fix glGetActiveUniform/Attrib crashes due to state inconsistency

between what Chrome thinks and what the driver is.

This is caused by we intercept invalid program and generate an error on
LinkProgram rather than passing it to the driver, so the driver still have
a valid program if the previous link succeeds.

BUG=463599
TEST=test case in the bug
R=sievers@chromium.org

Review URL: https://codereview.chromium.org/978193003

Cr-Commit-Position: refs/heads/master@{#319746}
gpu/blink/webgraphicscontext3d_impl.cc