Commit 90f466a6 by jchen10 Committed by Commit Bot

Suppress cast warnings for active textures mask

Bug: angleproject:2747 Bug: angleproject:2763 Change-Id: I19f9e5ba760d3b5baf3997284523ee1db6bb8166 Reviewed-on: https://chromium-review.googlesource.com/1172206Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jie A Chen <jie.a.chen@intel.com>
parent a43d7306
...@@ -2656,8 +2656,9 @@ Error State::syncProgramTextures(const Context *context) ...@@ -2656,8 +2656,9 @@ Error State::syncProgramTextures(const Context *context)
{ {
TextureType textureType = textureTypes[textureUnitIndex]; TextureType textureType = textureTypes[textureUnitIndex];
Texture *texture = getSamplerTexture(textureUnitIndex, textureType); Texture *texture =
Sampler *sampler = getSampler(textureUnitIndex); getSamplerTexture(static_cast<unsigned int>(textureUnitIndex), textureType);
Sampler *sampler = getSampler(static_cast<GLuint>(textureUnitIndex));
ASSERT(static_cast<size_t>(textureUnitIndex) < mActiveTexturesCache.size()); ASSERT(static_cast<size_t>(textureUnitIndex) < mActiveTexturesCache.size());
ASSERT(static_cast<size_t>(textureUnitIndex) < newActiveTextures.size()); ASSERT(static_cast<size_t>(textureUnitIndex) < newActiveTextures.size());
......
...@@ -983,7 +983,7 @@ void StateManagerGL::updateProgramTextureAndSamplerBindings(const gl::Context *c ...@@ -983,7 +983,7 @@ void StateManagerGL::updateProgramTextureAndSamplerBindings(const gl::Context *c
} }
} }
const gl::Sampler *sampler = glState.getSampler(textureUnitIndex); const gl::Sampler *sampler = glState.getSampler(static_cast<GLuint>(textureUnitIndex));
if (sampler != nullptr) if (sampler != nullptr)
{ {
SamplerGL *samplerGL = GetImplAs<SamplerGL>(sampler); SamplerGL *samplerGL = GetImplAs<SamplerGL>(sampler);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment