Validate texture target before updating texture size.
The target was validated that it was one of the TextureTarget types but not that the type was valid for the current context. This generated GL errors when querying the size of a 3D texture in an ES2 context. BUG=897453 BUG=892288 Change-Id: Ia6cafaf021751876148acdaf0ee96dc51353e98a Reviewed-on: https://chromium-review.googlesource.com/c/1293754Reviewed-by:Antoine Labour <piman@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org> Cr-Commit-Position: refs/heads/master@{#601663}
Showing
Please register or sign in to comment