4.10.1 Won't Compile DebugGame_Editor when using FOrthoMatrix

I’m getting a compiler warning in 4.10.1 when using FOrthoMatrix in a DebugGame_Editor build. Basically if I use that matrix anywhere in my code, it refuses to compile the game due to a potential divide by zero.

Development build compiles just fine, and this only started when I updated to the 4.10.1 hotfix.

I can get around this by Using FMath::Max to clamp the minimum input to 1.f whenever I use this, I guess that’s intended behavior?

Hey TheJamsh-

You’re correct that this is intended. You need to ensure that Height/Width cannot be zero or else the compiler is going to complain.


Doug Wilson