Set correct internalformat info for TexStorageEXT according context type

For ES2 context, EXT_texture_storage enables TexStorageEXT. In the
extension spec, it says for OpenGL ES
"
The TexImage* calls in the TexStorage* pseudocode are modified so that
the <internalformat>, <format> and <type> parameters are taken from the
<format>, <format> and <type> columns (respectively).
"
See https://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_storage.txt.

So, when we set texture level info, internalformat should be adjusted to
format in es2 context.

BUG=535198
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2458103002
Cr-Commit-Position: refs/heads/master@{#430501}
2 files changed