mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-25 15:15:40 +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;
|
MatDet test;
|
||||||
//==========
|
//==========
|
||||||
|
|
||||||
|
test = MatDet::notset; // happens for bad matrices with NaN
|
||||||
|
|
||||||
if (model->determinant < 0) { test = MatDet::negative; }
|
if (model->determinant < 0) { test = MatDet::negative; }
|
||||||
else if (model->determinant > 0) { test = MatDet::positive; }
|
else if (model->determinant > 0) { test = MatDet::positive; }
|
||||||
else if (model->determinant == 0) { test = MatDet::zero; }
|
else if (model->determinant == 0) { test = MatDet::zero; }
|
||||||
|
|
Loading…
Reference in a new issue