diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-14 13:49:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 13:49:20 +0100 |
commit | 79d42069a95e3129e804790a6cd28460d0142b35 (patch) | |
tree | 4a9d9446f4c7bbe670ae170c686e8977f56b7a49 /scene/3d | |
parent | a9c85e79add171ddb57e46df24376102893299b7 (diff) | |
parent | d2537407efffde15372962ffca864b7400ade345 (diff) |
Merge pull request #36208 from akien-mga/warnings
Fix various GCC compilation warnings after Vulkan merge
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/voxelizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/voxelizer.cpp b/scene/3d/voxelizer.cpp index 4d7054726d..7cf26ab974 100644 --- a/scene/3d/voxelizer.cpp +++ b/scene/3d/voxelizer.cpp @@ -1087,7 +1087,7 @@ PoolVector<uint8_t> Voxelizer::get_sdf_3d_image() const { if (d == 0) { w[i] = 0; } else { - w[i] = CLAMP(d, 0, 254) + 1; + w[i] = MIN(d, 254) + 1; } } } |