Refactor loading of background shader
This commit is contained in:
@@ -78,6 +78,9 @@ doLoop setup window startWorld
|
||||
eventFn
|
||||
worldUpdate
|
||||
= do
|
||||
errs <- GL.errors
|
||||
if length errs > 0 then putStrLn $ "GLerror during doLoop: " ++ (unwords $ map show errs)
|
||||
else return ()
|
||||
startLoopTicks <- ticks
|
||||
GL.clear [GL.ColorBuffer,GL.DepthBuffer]
|
||||
newParams <- worldSideEffects (setup & currentTime .~ startLoopTicks) startWorld
|
||||
|
||||
Reference in New Issue
Block a user