summaryrefslogtreecommitdiffstats
path: root/Bindings/GLX.chs
diff options
context:
space:
mode:
Diffstat (limited to 'Bindings/GLX.chs')
-rw-r--r--Bindings/GLX.chs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Bindings/GLX.chs b/Bindings/GLX.chs
index 58bc8cf..37669f3 100644
--- a/Bindings/GLX.chs
+++ b/Bindings/GLX.chs
@@ -17,6 +17,7 @@ module Bindings.GLX ( createColormap
, stencilSize
, createContext
, makeCurrent
+ , destroyContext
, Context(..)
) where
@@ -241,3 +242,6 @@ foreign import ccall unsafe "GL/glx.h glXCreateContext"
foreign import ccall unsafe "GL/glx.h glXMakeCurrent"
makeCurrent :: Display -> XID -> Context -> IO Bool
+
+foreign import ccall unsafe "GL/glx.h glXDestroyContext"
+ destroyContext :: Display -> Context -> IO () \ No newline at end of file