Re: GLU.Tessellator crashes

Balazs Komuves <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
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 <[email protected]> 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
> [email protected]
> http://www.haskell.org/mailman/listinfo/hopengl
>

_______________________________________________
HOpenGL mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/hopengl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.