aboutsummaryrefslogtreecommitdiff
path: root/servers/visual/rasterizer.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-03-22 15:05:47 -0300
committerJuan Linietsky2015-03-22 15:05:47 -0300
commitf706e3e5d1d93c5666a1edabec1aeee318996d6f (patch)
tree6cd00dbb9dcec62343f224fe6a5ae5899232975d /servers/visual/rasterizer.cpp
parent0302ea5b821939c68529195d223c35bc7f3ce7b1 (diff)
parentc0efa3fb5b8c545c34859cc722c3c8a2ada13e02 (diff)
downloadgodot-f706e3e5d1d93c5666a1edabec1aeee318996d6f.tar.gz
godot-f706e3e5d1d93c5666a1edabec1aeee318996d6f.tar.zst
godot-f706e3e5d1d93c5666a1edabec1aeee318996d6f.zip
Merge pull request #1380 from ElectricSolstice/wparentheses_removal
Changed code to remove gcc -Wparentheses warnings.
Diffstat (limited to 'servers/visual/rasterizer.cpp')
-rw-r--r--servers/visual/rasterizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/visual/rasterizer.cpp b/servers/visual/rasterizer.cpp
index c3dcd83a3..508800002 100644
--- a/servers/visual/rasterizer.cpp
+++ b/servers/visual/rasterizer.cpp
@@ -91,7 +91,7 @@ RID Rasterizer::_create_shader(const FixedMaterialShaderKey& p_key) {
scode+="uniform float fmp_normal;\n";
scode+="uniform texture fmp_normal_tex;\n";
String uv_str;
- if ((p_key.texcoord_mask>>(VS::FIXED_MATERIAL_PARAM_NORMAL*2))&0x3==VS::FIXED_MATERIAL_TEXCOORD_SPHERE) {
+ if (((p_key.texcoord_mask>>(VS::FIXED_MATERIAL_PARAM_NORMAL*2))&0x3)==VS::FIXED_MATERIAL_TEXCOORD_SPHERE) {
uv_str="uv"; //sorry not supported
} else {
uv_str=_TEXUVSTR(VS::FIXED_MATERIAL_PARAM_NORMAL);