diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2010-03-02 03:48:03 +0100 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2010-03-02 03:48:03 +0100 |
commit | 6a381a238a10695c5efa79ac7e73818c33c3e1f6 (patch) | |
tree | 33166b9cb7ee4ca0eaeb9a303431b010a7c4d4b1 | |
parent | b9b5f03a321b570dc34f28f0f3d41c38aee869f1 (diff) | |
download | htanks-6a381a238a10695c5efa79ac7e73818c33c3e1f6.tar htanks-6a381a238a10695c5efa79ac7e73818c33c3e1f6.zip |
Use double buffers fbconfig
-rw-r--r-- | GLX.hs | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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 |