[Haskell-cafe] Compiled program using OpenGL fails to trigger GPU switch on Mac, but works in GHCi

Brandon Allbery allbery.b at gmail.com
Mon Mar 18 01:27:16 CET 2013


On Sun, Mar 17, 2013 at 7:58 PM, Jason Dagit <dagitj at gmail.com> wrote:

> On Sat, Mar 16, 2013 at 6:53 PM, Jesper Särnesjö <sarnesjo at gmail.com>wrote:
>
>> To be clear, I think this isn't really an OpenGL problem, but rather
>> one related to FFI or event handling. If anyone could explain to me,The
>> release notes for 7.0.1 said this about that flag:
>
> There is a new -fno-ghci-sandbox flag, which stops GHCi running
> computations in a separate thread. In particular, this is useful for GLUT
> on OS X, which only works if being run on the main thread.
>

Worth noting is that Jesper said it *works* in ghci, and fails when
compiled....

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130317/6de02178/attachment.htm>


More information about the Haskell-Cafe mailing list