SFML community forums

Help => Graphics => Topic started by: Jebbs on January 28, 2015, 07:56:33 am

Title: Weird issue drawing on OSX..kind of..
Post by: Jebbs on January 28, 2015, 07:56:33 am
This is related to my binding so it is probably my own fault more than anything else, but I am hoping someone can at least point me in the right direction as to what might cause something like this.

Basically drawing works correctly for SFML, but not DSFML. Check it out:
(http://i.imgur.com/TKRDFQE.png)

My guess is that something crazy is going on with the vertex arrays, but who knows?!

Oddly enough, no one that uses my binding has reported this happening. It only seems to have happened to me so far. I am currently attributing it to my very old and crappy Mac box. You don't even want to know the specs. It'll make you cry.

Any speculation is welcome.
Title: AW: Weird issue drawing on OSX..kind of..
Post by: eXpl0it3r on January 28, 2015, 12:11:52 pm
Not sure how easy this is with your binding, but run it through a debugger and check that every value is correct.
If that didn't help, use some graphics debbuger and see what goes on there.
Title: Re: Weird issue drawing on OSX..kind of..
Post by: Jebbs on January 30, 2015, 01:13:30 am
Figured it out. It was definitely my fault. Basically the thickness of the shape wasn't getting initialized in the constructor, and in D floats initialize to NaN. When the outline was being calculated it made some of the vertices be all crazy as hell.