1
0
Fork 0
forked from suyu/suyu

Merge pull request #1149 from lioncash/paren

shader_bytecode: Parenthesize conditional expression within GetTextureType()
This commit is contained in:
bunnei 2018-08-21 17:04:29 -04:00 committed by GitHub
commit a769d8c913
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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