Skip to content
Snippets Groups Projects
Commit a0e2bd85 authored by Lioncash's avatar Lioncash
Browse files

shader_bytecode: Parenthesize conditional expression within GetTextureType()

Resolves a -Wlogical-op-parentheses warning.
parent c95c4442
No related branches found
No related tags found
No related merge requests found
...@@ -518,7 +518,7 @@ union Instruction { ...@@ -518,7 +518,7 @@ union Instruction {
return TextureType::Texture1D; return TextureType::Texture1D;
} }
if (texture_info == 2 || texture_info == 8 || texture_info == 12 || 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; return TextureType::Texture2D;
} }
if (texture_info == 7) { if (texture_info == 7) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment