From 64a23ce0ede5f232cc209b69d64164ede6810b65 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Tue, 14 Jun 2022 19:09:52 -0400 Subject: [PATCH] TextureGL: MSVC compile fix --- src/dawn/native/opengl/TextureGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {