qualified gl
This commit is contained in:
parent
c57046ca3b
commit
33c99b8888
1 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ import Affection.Subsystems as A
|
||||||
|
|
||||||
import Affection.Logging as A
|
import Affection.Logging as A
|
||||||
|
|
||||||
import Graphics.Rendering.OpenGL as GL (clear, flush, ClearBuffer(..))
|
import qualified Graphics.Rendering.OpenGL as GL (clear, flush, ClearBuffer(..))
|
||||||
|
|
||||||
|
|
||||||
-- | Main function which bootstraps everything else.
|
-- | Main function which bootstraps everything else.
|
||||||
|
@ -136,9 +136,9 @@ withAffection AffectionConfig{..} = do
|
||||||
-- execute user defined update loop
|
-- execute user defined update loop
|
||||||
unless (pausedTime ad) (updateLoop dt)
|
unless (pausedTime ad) (updateLoop dt)
|
||||||
-- execute user defined draw loop
|
-- execute user defined draw loop
|
||||||
liftIO $ GL.clear [ColorBuffer, DepthBuffer, StencilBuffer]
|
liftIO $ GL.clear [GL.ColorBuffer, GL.DepthBuffer, GL.StencilBuffer]
|
||||||
drawLoop
|
drawLoop
|
||||||
liftIO flush
|
liftIO GL.flush
|
||||||
-- handle all new draw requests
|
-- handle all new draw requests
|
||||||
ad2 <- get
|
ad2 <- get
|
||||||
-- actual drawing
|
-- actual drawing
|
||||||
|
|
Loading…
Reference in a new issue