remove next lesson's code
This commit is contained in:
parent
38a7c098dd
commit
2ad52f5ba2
1 changed files with 0 additions and 5 deletions
|
@ -135,8 +135,6 @@ main = do
|
||||||
|
|
||||||
sp <- createShaderProgram vertSrc fragSrc
|
sp <- createShaderProgram vertSrc fragSrc
|
||||||
GL.currentProgram $= Just sp
|
GL.currentProgram $= Just sp
|
||||||
err <- get GL.errors
|
|
||||||
print $ "pre-loop errors: " <> show err
|
|
||||||
|
|
||||||
-- -- EVENTING AND DRAWING
|
-- -- EVENTING AND DRAWING
|
||||||
|
|
||||||
|
@ -161,10 +159,7 @@ main = do
|
||||||
GL.clear [GL.ColorBuffer]
|
GL.clear [GL.ColorBuffer]
|
||||||
|
|
||||||
-- the actual drawing happens here
|
-- the actual drawing happens here
|
||||||
void $ get GL.errors
|
|
||||||
GL.drawElements GL.Triangles 6 GL.UnsignedInt nullPtr
|
GL.drawElements GL.Triangles 6 GL.UnsignedInt nullPtr
|
||||||
err <- get GL.errors
|
|
||||||
when (not $ null err) (print $ "loop errors: " <> show err)
|
|
||||||
|
|
||||||
-- make GL finish things up
|
-- make GL finish things up
|
||||||
-- GL.flush
|
-- GL.flush
|
||||||
|
|
Loading…
Reference in a new issue