summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/texture_manager.cc
diff options
context:
space:
mode:
authoroetuaho@nvidia.com <oetuaho@nvidia.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-20 16:56:25 +0000
committeroetuaho@nvidia.com <oetuaho@nvidia.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-20 16:56:25 +0000
commitd8e6c924b1bb23056f02d9c6e6363cfc43c38c7d (patch)
treefb995c004adc2bb8e20cd96f5e603f7bfd3b29d7 /gpu/command_buffer/service/texture_manager.cc
parent8357da40eb30d9c734b4b8c18d4633760d94c1e5 (diff)
downloadchromium_src-d8e6c924b1bb23056f02d9c6e6363cfc43c38c7d.zip
chromium_src-d8e6c924b1bb23056f02d9c6e6363cfc43c38c7d.tar.gz
chromium_src-d8e6c924b1bb23056f02d9c6e6363cfc43c38c7d.tar.bz2
Do not rely on a texture's internalformat matching format
After recently implemented support for rendering to 32-bit floating point textures on ES3, texture's internal format and format do not necessarily always match. Fix the command decoder code that relied on them matching. BUG=329605 TEST=gpu_unittests, WebGL conformance tests Review URL: https://codereview.chromium.org/168983005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252268 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/texture_manager.cc')
-rw-r--r--gpu/command_buffer/service/texture_manager.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpu/command_buffer/service/texture_manager.cc b/gpu/command_buffer/service/texture_manager.cc
index a0a60c1..38516e7 100644
--- a/gpu/command_buffer/service/texture_manager.cc
+++ b/gpu/command_buffer/service/texture_manager.cc
@@ -780,8 +780,8 @@ bool Texture::ClearLevel(
// but only the decoder knows all the state (like unpack_alignment_) that's
// needed to be able to call GL correctly.
bool cleared = decoder->ClearLevel(
- service_id_, target_, info.target, info.level, info.format, info.type,
- info.width, info.height, immutable_);
+ service_id_, target_, info.target, info.level, info.internal_format,
+ info.format, info.type, info.width, info.height, immutable_);
UpdateMipCleared(&info, cleared);
return info.cleared;
}