[HOpenGL] GLU.Tessellator crashes

Balazs Komuves bkomuves at gmail.com
Thu Mar 12 11:27:14 EDT 2009


Hello,

I can't reproduce this behaviour (though I didn't try very hard).
Could you send some specific code which produces bus error on your setup?

By the way, you make a Storable instance for () yourself:

instance Storable () where
  alignment _ = 1
  sizeOf _ = 0
  poke _ _ = return ()
  peek _ = return ()

Balazs

On Wed, Mar 11, 2009 at 7:15 PM, Jules Bean <jules at jellybean.co.uk> wrote:

> Hi,
>
> I've just written some code which uses 'tessellate' from
> Graphics.Rendering.OpenGL.GLU.Tessellation and whilst it works exactly as
> expected on simple data sets, it gives a bus error on larger ones (not that
> large - e.g. 150 points).
>
> This might be a bug in my OS's glu implementation, but I'm also inclined to
> suspect a bug in all the peeks and pokes HOpenGL uses to handle the data for
> the callbacks. I don't actually use the callback data (I've set all the data
> to (0 :: Int) only because there is no storable instance for ()).
>
> Does anyone have a success story with this function? Has anyone used it
> successfully on larger polygons?
>
> Jules
> _______________________________________________
> HOpenGL mailing list
> HOpenGL at haskell.org
> http://www.haskell.org/mailman/listinfo/hopengl
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/hopengl/attachments/20090312/d952f09a/attachment-0001.htm


More information about the HOpenGL mailing list