Ensure depth reads go via alpha render list, fixes #14759

This commit is contained in:
Juan Linietsky
2018-01-06 17:38:39 -03:00
parent 50b975548d
commit 9cf19f8dee
4 changed files with 7 additions and 4 deletions

View File

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