summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Data/Vec/OpenGLRaw.hs8
-rw-r--r--Vec-OpenGLRaw.cabal2
2 files changed, 5 insertions, 5 deletions
diff --git a/Data/Vec/OpenGLRaw.hs b/Data/Vec/OpenGLRaw.hs
index 1569ac0..d61e977 100644
--- a/Data/Vec/OpenGLRaw.hs
+++ b/Data/Vec/OpenGLRaw.hs
@@ -23,18 +23,18 @@ instance NearZero GL.GLuint
instance NearZero GL.GLushort
instance NearZero GL.GLfloat where
- nearZero x = x < 1e-6
+ nearZero x = abs x < 1e-6
{-# INLINE nearZero #-}
instance NearZero GL.GLdouble where
- nearZero x = x < 1e-14
+ nearZero x = abs x < 1e-14
{-# INLINE nearZero #-}
instance NearZero GL.GLclampf where
- nearZero x = x < 1e-6
+ nearZero x = abs x < 1e-6
{-# INLINE nearZero #-}
instance NearZero GL.GLclampd where
- nearZero x = x < 1e-14
+ nearZero x = abs x < 1e-14
{-# INLINE nearZero #-}
diff --git a/Vec-OpenGLRaw.cabal b/Vec-OpenGLRaw.cabal
index c3c9f6f..133ece9 100644
--- a/Vec-OpenGLRaw.cabal
+++ b/Vec-OpenGLRaw.cabal
@@ -1,5 +1,5 @@
Name: Vec-OpenGLRaw
-Version: 0.2.0.0
+Version: 0.2.0.1
Synopsis: Instances and functions to interoperate Vec and OpenGL.
Description: Provides:
* NearZero instances for all OpenGL numeric types