Explorar o código

shader_bytecode: Parenthesize conditional expression within GetTextureType()

Resolves a -Wlogical-op-parentheses warning.
Lioncash %!s(int64=8) %!d(string=hai) anos
pai
achega
a0e2bd85a5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/video_core/engines/shader_bytecode.h

+ 1 - 1
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) {