diff --git a/src/dawn/native/opengl/TextureGL.cpp b/src/dawn/native/opengl/TextureGL.cpp index 5b2b999e9a..a6bea67422 100644 --- a/src/dawn/native/opengl/TextureGL.cpp +++ b/src/dawn/native/opengl/TextureGL.cpp @@ -252,7 +252,7 @@ MaybeError Texture::ClearTexture(const SubresourceRange& range, float fClearColor = (clearValue == TextureBase::ClearValue::Zero) ? 0.f : 1.f; if (GetFormat().isRenderable) { - if ((range.aspects & (Aspect::Depth | Aspect::Stencil)) != 0) { + if (range.aspects & (Aspect::Depth | Aspect::Stencil)) { GLfloat depth = fClearColor; GLint stencil = clearColor; if (range.aspects & Aspect::Depth) {