Page MenuHome

Fix T71795: Unproject with high clipping range sometimes results in nans
ClosedPublic

Authored by Germano Cavalcante (mano-wii) on Nov 26 2019, 9:45 PM.

Details

Summary

In some cases you cannot get the original value of clip_end through the projection matrix.
It might be a good idea to figure out the maximum limit for these float operations and update mat4_frustum_set to not fall in such cases.
But this patch only intended to prevent unproject operations from operating with infs and nans.

Ref T71795

Diff Detail

Repository
rB Blender
Branch
master
Build Status
Buildable 5784
Build 5784: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Dec 19 2019, 3:45 PM
This revision was automatically updated to reflect the committed changes.