gpu: If not cube complete, the texture isn't renderable, no matter mipmap complete.
commita326ed46c3923c0e3a29d030c10e3e76b3bdc288
authordongseong.hwang <dongseong.hwang@intel.com>
Thu, 20 Aug 2015 09:09:23 +0000 (20 02:09 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 20 Aug 2015 09:09:56 +0000 (20 09:09 +0000)
treecf143aee2c938fd7c15166e8121113736a79067f
parent53a6dde573f020d57b4fff5923f272f98da66e27
gpu: If not cube complete, the texture isn't renderable, no matter mipmap complete.

GLES2 spec 3.8.2 says
"A cube map sampler is called, and either the corresponding cube map texture
image is not cube complete, or TEXTURE_MIN_FILTER is one that requires
a mipmap and the texture is not mipmap cube complete."

However, Texture::GetCanRenderCondition() checks cube complete only if the texture
needs mipmap.

TEST=gpu_unittests TextureTest.POTCubeMapWithoutMipmap
BUG=517548

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

Cr-Commit-Position: refs/heads/master@{#344456}
gpu/command_buffer/service/texture_manager.cc
gpu/command_buffer/service/texture_manager_unittest.cc