aboutsummaryrefslogtreecommitdiff
path: root/scene/resources/bit_mask.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2018-01-06 17:38:39 -0300
committerJuan Linietsky2018-01-06 17:38:39 -0300
commit9cf19f8dee98fdc11e44224c48ce968a87022eb6 (patch)
tree5fc8fc39e29e20239794be9b8bf670ddb068acf6 /scene/resources/bit_mask.cpp
parent50b975548dcd65a9506e7fb449d40404320c0983 (diff)
downloadgodot-9cf19f8dee98fdc11e44224c48ce968a87022eb6.tar.gz
godot-9cf19f8dee98fdc11e44224c48ce968a87022eb6.tar.zst
godot-9cf19f8dee98fdc11e44224c48ce968a87022eb6.zip
Ensure depth reads go via alpha render list, fixes #14759
Diffstat (limited to '')
-rw-r--r--scene/resources/bit_mask.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/bit_mask.cpp b/scene/resources/bit_mask.cpp
index fd70dd2eb..e99db8d9c 100644
--- a/scene/resources/bit_mask.cpp
+++ b/scene/resources/bit_mask.cpp
@@ -112,8 +112,8 @@ int BitMap::get_true_bit_count() const {
void BitMap::set_bit(const Point2 &p_pos, bool p_value) {
- int x = Math::fast_ftoi(p_pos.x);
- int y = Math::fast_ftoi(p_pos.y);
+ int x = p_pos.x;
+ int y = p_pos.y;
ERR_FAIL_INDEX(x, width);
ERR_FAIL_INDEX(y, height);