clear [ColorBuffer]

h. <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
Hello,

The program:

import Graphics.Rendering.OpenGL
import Graphics.UI.GLUT

main = do
  _ <- getArgsAndInitialize
  createWindow "Hello World"
  displayCallback $= clear [ ColorBuffer ]
  mainLoop

and the problem:
The ColorBuffer is not cleared, the window shows what was there before it was 
created.
Creating windows, drawing points,... works all well, but "clear [ 
ColorBuffer ]" seems not to work.
(I'm using the ghc 6.6 on Windows)

Thanks in advance for your help.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.