summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2010-03-02 03:48:03 +0100
committerMatthias Schiffer <matthias@gamezock.de>2010-03-02 03:48:03 +0100
commit6a381a238a10695c5efa79ac7e73818c33c3e1f6 (patch)
tree33166b9cb7ee4ca0eaeb9a303431b010a7c4d4b1
parentb9b5f03a321b570dc34f28f0f3d41c38aee869f1 (diff)
downloadhtanks-6a381a238a10695c5efa79ac7e73818c33c3e1f6.tar
htanks-6a381a238a10695c5efa79ac7e73818c33c3e1f6.zip
Use double buffers fbconfig
-rw-r--r--GLX.hs13
1 files changed, 7 insertions, 6 deletions
diff --git a/GLX.hs b/GLX.hs
index 8a1c52d..3dbb362 100644
--- a/GLX.hs
+++ b/GLX.hs
@@ -49,12 +49,13 @@ instance Driver GLX where
disp <- openDisplay ""
delwnd <- internAtom disp "WM_DELETE_WINDOW" False
fbconfigs <- chooseFBConfig disp (fromIntegral . defaultScreen $ disp)
- [(renderType, rgbaBit)
- , (drawableType, windowBit)
- , (xRenderable, 1)
- , (depthSize, 1)
- , (stencilSize, 1)
- ]
+ [ (renderType, rgbaBit)
+ , (drawableType, windowBit)
+ , (doublebuffer, 1)
+ , (xRenderable, 1)
+ , (depthSize, 1)
+ , (stencilSize, 1)
+ ]
visualinfo <- getVisualFromFBConfig disp (head fbconfigs)
rootwindow <- rootWindow disp (fromIntegral $ viScreen visualinfo)
cmap <- createColormap disp rootwindow (viVisual visualinfo) allocNone