Commit fb2a5597 by Geoff Lang

Fix incorrect assertion.

BUG=angleproject:884 Change-Id: I3406eec99609b85c407797c50b71611b445a6ca5 Reviewed-on: https://chromium-review.googlesource.com/261462Tested-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 30ceb3a1
......@@ -52,7 +52,7 @@ static bool CompatibleTextureTarget(GLenum textureType, GLenum textureTarget)
}
else
{
return gl::IsCubeMapTextureTarget(textureType);
return gl::IsCubeMapTextureTarget(textureTarget);
}
}
......@@ -88,7 +88,7 @@ void TextureGL::setUsage(GLenum usage)
gl::Error TextureGL::setImage(GLenum target, size_t level, GLenum internalFormat, const gl::Extents &size, GLenum format, GLenum type,
const gl::PixelUnpackState &unpack, const uint8_t *pixels)
{
(void)&CompatibleTextureTarget; // Reference this function to avoid warnings.
UNUSED_ASSERTION_VARIABLE(&CompatibleTextureTarget); // Reference this function to avoid warnings.
ASSERT(CompatibleTextureTarget(mTextureType, target));
SetUnpackStateForTexImage(mStateManager, unpack);
......
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