Windows 10 64 bits GLES3 GeForce GTX 1060 6GB/PCIe/SSE2
Issue description
I noticed a NaN popped up while I was porting a project to Godot4, and was very confused to find its origin in the following expression:
distance = max(distance - 1 - distance * 0.1, 0)
distance becomes NaN after this.
I tried a simple repro but could not get it to happen.
So I tried a bit more of the original code, and it started happening:
Godot version
4.0 092a2861277e7df87aec10516d713d0bf4adba79
System information
Windows 10 64 bits GLES3 GeForce GTX 1060 6GB/PCIe/SSE2
Issue description
I noticed a NaN popped up while I was porting a project to Godot4, and was very confused to find its origin in the following expression:
distance
becomes NaN after this. I tried a simple repro but could not get it to happen. So I tried a bit more of the original code, and it started happening:Still, I have no clue why would NaN originate from this.
Steps to reproduce
With the code above, start the game, and wiggle your mouse wheel back and forth. The game will quickly assert.
Minimal reproduction project
Max.zip