[Haskell-cafe] help with glfw seg-fault

Daniel P. Wright dani at dpwright.com
Fri May 29 05:58:16 UTC 2015


Ah, yeah, that blog post I linked is using the "gl" package rather than the
"OpenGL"/"OpenGLRaw" packages, so some of the names of things are a bit
different.

Glad you got it sorted in the end!

2015-05-29 13:32 GMT+09:00 <briand at aracnet.com>:

> On Tue, 26 May 2015 14:34:16 +0900
> "Daniel P. Wright" <dani at dpwright.com> wrote:
>
> > Hi Brian,
> >
> > Have you checked for / output any GL errors that happen before you call
> swapBuffers? I have a function printErrors (as defined here
> http://dpwright.com/posts/2015/03/25/the-haskell-gl-package/#error-handling-utilities
> ) which I scatter around when things go wrong to try and find the root
> cause...
> >
>
> bug report!
>
>
>   m@(~(Just w)) <- createWindow 400 400 "Title" Nothing Nothing
>   when (isNothing m) (error "Couldn't create window!")
>
>   GLFW.makeContextCurrent m
>   ^^^^^^^^^^^^^^^^^^^^^^^^^
>
> then no seg-faults.
>
> Brian
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150529/9d814f47/attachment.html>


More information about the Haskell-Cafe mailing list