mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Don't compare float to int
This commit is contained in:
parent
6d233c651b
commit
e0a19a77e5
@ -116,7 +116,7 @@ void main() {
|
||||
|
||||
#ifdef USE_TEXTURE_RECT
|
||||
|
||||
if (dst_rect.z < 0) { // Transpose is encoded as negative dst_rect.z
|
||||
if (dst_rect.z < 0.0) { // Transpose is encoded as negative dst_rect.z
|
||||
uv_interp = src_rect.xy + abs(src_rect.zw) * vertex.yx;
|
||||
} else {
|
||||
uv_interp = src_rect.xy + abs(src_rect.zw) * vertex;
|
||||
|
Loading…
Reference in New Issue
Block a user