mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 05:45:38 +00:00
fix for bad matrix with NaN
This commit is contained in:
parent
5c513445b1
commit
23172c9aec
|
@ -279,6 +279,8 @@ void R3DShader::SetModelStates(const Model* model)
|
|||
MatDet test;
|
||||
//==========
|
||||
|
||||
test = MatDet::notset; // happens for bad matrices with NaN
|
||||
|
||||
if (model->determinant < 0) { test = MatDet::negative; }
|
||||
else if (model->determinant > 0) { test = MatDet::positive; }
|
||||
else if (model->determinant == 0) { test = MatDet::zero; }
|
||||
|
|
Loading…
Reference in a new issue