mirror of
https://github.com/godotengine/godot.git
synced 2024-12-24 20:03:05 +00:00
Fixed typo in ImageTexture:: & StreamTexture::is_pixel_opaque
Fixes #24946
This commit is contained in:
parent
9ed34d4423
commit
3beca92d61
@ -324,7 +324,7 @@ bool ImageTexture::is_pixel_opaque(int p_x, int p_y) const {
|
||||
int y = p_y * ah / h;
|
||||
|
||||
x = CLAMP(x, 0, aw);
|
||||
y = CLAMP(y, 0, aw);
|
||||
y = CLAMP(y, 0, ah);
|
||||
|
||||
return alpha_cache->get_bit(Point2(x, y));
|
||||
}
|
||||
@ -791,7 +791,7 @@ bool StreamTexture::is_pixel_opaque(int p_x, int p_y) const {
|
||||
int y = p_y * ah / h;
|
||||
|
||||
x = CLAMP(x, 0, aw);
|
||||
y = CLAMP(y, 0, aw);
|
||||
y = CLAMP(y, 0, ah);
|
||||
|
||||
return alpha_cache->get_bit(Point2(x, y));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user