The program crashed if the platform didn't support GL_TEXTURE_EXTERNAL_OES at all.
Since only one of GL_TEXTURE_2D and GL_TEXTURE_EXTERNAL_OES would be used. Switch active texture according to the target type and unbound the texture after use. BUG=chromium:383414 TEST=Run the unittest on link and peach-pit Review URL: https://codereview.chromium.org/324253005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277977 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment