Merge pull request #6502 from lioncash/warn

AbstractFramebuffer: Silence a -Wlogical-op-parentheses warning in ValidateConfig()
This commit is contained in:
Léo Lam 2018-03-23 15:05:59 +01:00 committed by GitHub
commit dc098fdf08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ bool AbstractFramebuffer::ValidateConfig(const AbstractTexture* color_attachment
return tex->GetConfig().rendertarget && tex->GetConfig().levels == 1;
};
if ((color_attachment && !CheckAttachment(color_attachment)) ||
depth_attachment && !CheckAttachment(depth_attachment))
(depth_attachment && !CheckAttachment(depth_attachment)))
{
return false;
}