<div dir="ltr">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.<div><br></div><div>Glad you got it sorted in the end!</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-29 13:32 GMT+09:00  <span dir="ltr"><<a href="mailto:briand@aracnet.com" target="_blank">briand@aracnet.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, 26 May 2015 14:34:16 +0900<br>
"Daniel P. Wright" <<a href="mailto:dani@dpwright.com">dani@dpwright.com</a>> wrote:<br>
<br>
</span><span class="">> Hi Brian,<br>
><br>
> Have you checked for / output any GL errors that happen before you call swapBuffers? I have a function printErrors (as defined here <a href="http://dpwright.com/posts/2015/03/25/the-haskell-gl-package/#error-handling-utilities" target="_blank">http://dpwright.com/posts/2015/03/25/the-haskell-gl-package/#error-handling-utilities</a> ) which I scatter around when things go wrong to try and find the root cause...<br>
><br>
<br>
</span>bug report!<br>
<br>
<br>
  m@(~(Just w)) <- createWindow 400 400 "Title" Nothing Nothing<br>
  when (isNothing m) (error "Couldn't create window!")<br>
<br>
  GLFW.makeContextCurrent m<br>
  ^^^^^^^^^^^^^^^^^^^^^^^^^<br>
<br>
then no seg-faults.<br>
<br>
Brian<br>
</blockquote></div><br></div>