From be7865e468d16546676dd3d1f2bd321633f6a622 Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Sun, 21 Feb 2010 22:36:45 +0000 Subject: [PATCH] Fixed RenderTarget::ConvertCoords returning incorrect tiny numbers for very large views git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1415 4e206d99-4929-0410-ac5d-dfc041789085 --- include/SFML/Graphics/Matrix3.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SFML/Graphics/Matrix3.inl b/include/SFML/Graphics/Matrix3.inl index 23d454f96..ed1f60086 100644 --- a/include/SFML/Graphics/Matrix3.inl +++ b/include/SFML/Graphics/Matrix3.inl @@ -120,7 +120,7 @@ inline Matrix3 Matrix3::GetInverse() const myData[3] * (myData[13] * myData[4] - myData[5] * myData[12]); // Compute the inverse if determinant is not zero - if ((det < -1E-7f) || (det > 1E-7f)) + if (det != 0.f) // don't use an epsilon because the determinant may *really* be tiny { return Matrix3( (myData[15] * myData[5] - myData[7] * myData[13]) / det, -(myData[15] * myData[4] - myData[7] * myData[12]) / det,