Commit 683d65f8 by jchen10 Committed by Commit Bot

Fix a trivial parentheses compile warning

Unable to compile with gcc 7.2.0 ubuntu 17.10. Bug: angleproject:2318 Change-Id: I91a5d73e56d308c7bda45778f5222884f3c202d0 Reviewed-on: https://chromium-review.googlesource.com/1079997 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 05cd6dfc
......@@ -83,7 +83,7 @@ bool ImageIndex::has3DLayer() const
{
// It's quicker to check != CubeMap than calling usesTex3D, which checks multiple types. This
// ASSERT validates the check gives the same result.
ASSERT(!hasLayer() || (mType != TextureType::CubeMap == usesTex3D()));
ASSERT(!hasLayer() || ((mType != TextureType::CubeMap) == usesTex3D()));
return (hasLayer() && mType != TextureType::CubeMap);
}
......
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