diff --git a/caramia.cabal b/caramia.cabal
--- a/caramia.cabal
+++ b/caramia.cabal
@@ -1,5 +1,5 @@
 name:                caramia
-version:             0.7.2.0
+version:             0.7.2.1
 synopsis:            High-level OpenGL bindings
 homepage:            https://github.com/Noeda/caramia/
 license:             MIT
@@ -140,7 +140,7 @@
                       ,text         >=0.9 && <2.0
                       ,transformers >=0.3 && <1.0
                       ,vector       >=0.10 && <1.0
-                      ,gl           >=0.6.2 && <0.7
+                      ,gl           >=0.7.3 && <1.0
 
   if flag(fix-opengl21)
     cpp-options:       -DFIXED_OPENGL_MAJOR_VERSION=2
diff --git a/src/Graphics/Caramia/Internal/OpenGLCApi.hs b/src/Graphics/Caramia/Internal/OpenGLCApi.hs
--- a/src/Graphics/Caramia/Internal/OpenGLCApi.hs
+++ b/src/Graphics/Caramia/Internal/OpenGLCApi.hs
@@ -410,7 +410,7 @@
                | otherwise -> Nothing
 
 -- | This function is a no-op if the required extensions are not available.
-mglFlushMappedNamedBufferRange :: GLuint -> GLintptr -> GLsizei -> IO ()
+mglFlushMappedNamedBufferRange :: GLuint -> GLintptr -> GLsizeiptr -> IO ()
 mglFlushMappedNamedBufferRange buffer offset length =
     if gl_ARB_direct_state_access && we_have_map_buffer_range
       then dsaWay
