TextureGL: MSVC compile fix

This commit is contained in:
Luke Street 2022-06-14 19:09:52 -04:00 committed by Luke Street
parent 8341499b86
commit 64a23ce0ed
1 changed files with 1 additions and 1 deletions

View File

@ -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) {