
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
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@haskell.org http://www.haskell.org/mailman/listinfo/hopengl