Commit 1a2cd269e606257bb1bb9d2a40ba4848aaf469dc

kbr@chromium.org 2011-07-08T17:30:18

Changed two assertions to explicit tests, and added an error code to those checked during ReadPixels. These changes are needed to avoid having ANGLE assert in debug builds when running WebGL test cases which provoke a GPU reset. BUG=none TEST=slow-shader-example and lots-of-polys-example in WebGL test suite Review URL: http://codereview.appspot.com/4684042 git-svn-id: https://angleproject.googlecode.com/svn/trunk@703 736b8ea6-26fd-11df-bfd4-992fa37f6226