Work around broken GL_TEXTURE_BINDING_EXTERNAL_OES query

glGetIntegerv(GL_TEXTURE_BINDING_EXTERNAL_OES, &texture_id) returns
GL_INVALID_ENUM on older Android NVIDIA drivers.

The reason for the query is to restore correct texture bindings,
since SurfaceTexture.updateTexImage() implies a call to glBindTexture().
Since we now only call this before drawing, we can just set the correct
active texture unit (which gets restored after draw).

BUG=305526,283053

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229254 0039d316-1c4b-4281-b951-d872f2087c98
3 files changed