diff --git a/ibis.cabal b/ibis.cabal index 45b3cff..136c1e2 100644 --- a/ibis.cabal +++ b/ibis.cabal @@ -27,7 +27,7 @@ executable ibis , containers , optparse-applicative , poppler - , sdl2 + , sdl2 ^>= 2.5.0.0 , linear , monad-loops , OpenGL diff --git a/src/Util.hs b/src/Util.hs index e7b06be..bfcc9c9 100644 --- a/src/Util.hs +++ b/src/Util.hs @@ -27,7 +27,7 @@ import Types glWindowConfig :: SDL.WindowConfig glWindowConfig = SDL.defaultWindow { SDL.windowResizable = True - , SDL.windowOpenGL = Just SDL.defaultOpenGL + , SDL.windowGraphicsContext = SDL.OpenGLContext SDL.defaultOpenGL { SDL.glProfile = SDL.Core SDL.Normal 3 3 } }