From a0e2bd85a5724dd9a4bcf69f9bd3a1ec7a39fe75 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 21 Aug 2018 15:08:33 -0400 Subject: [PATCH] shader_bytecode: Parenthesize conditional expression within GetTextureType() Resolves a -Wlogical-op-parentheses warning. --- src/video_core/engines/shader_bytecode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h index 875b90359b..67194b0e36 100644 --- a/src/video_core/engines/shader_bytecode.h +++ b/src/video_core/engines/shader_bytecode.h @@ -518,7 +518,7 @@ union Instruction { return TextureType::Texture1D; } if (texture_info == 2 || texture_info == 8 || texture_info == 12 || - texture_info >= 4 && texture_info <= 6) { + (texture_info >= 4 && texture_info <= 6)) { return TextureType::Texture2D; } if (texture_info == 7) {