Re: Strange segfault (Derelict/OpenGL)

2014-08-30 Thread Robin Schroer via Digitalmars-d-learn
On Friday, 29 August 2014 at 15:20:00 UTC, Mike Parker wrote: As the README in Derelict 3 points out, that project is no longer updated. You should be using the binding from the DerelictOrg project [1] for anything new. [1] https://github.com/DerelictOrg/ stitch On 8/29/2014 9:16 PM,

Re: Strange segfault (Derelict/OpenGL)

2014-08-30 Thread Mike Parker via Digitalmars-d-learn
On 8/30/2014 11:12 PM, Robin Schroer wrote: Some code would be helpful. My first thought is that you aren't loading properly. DerelictGL3 does not load deprecated functions, but you're trying to call a deprecated function. Are you loading DerelictGL or DerelictGL3? So, I dug around a lot. I

Strange segfault (Derelict/OpenGL)

2014-08-29 Thread Robin Schroer via Digitalmars-d-learn
I'm not entirely sure where to post, so I will put it here. I'm playing around with D and Derelict 3 to make something with OpenGL (don't really know what yet). I managed to open a window, add an OpenGL context, clear the screen and flip buffers. But as soon as I try to render a triangle, my

Re: Strange segfault (Derelict/OpenGL)

2014-08-29 Thread John Colvin via Digitalmars-d-learn
On Friday, 29 August 2014 at 11:23:34 UTC, Robin Schroer wrote: I'm not entirely sure where to post, so I will put it here. I'm playing around with D and Derelict 3 to make something with OpenGL (don't really know what yet). I managed to open a window, add an OpenGL context, clear the screen

Re: Strange segfault (Derelict/OpenGL)

2014-08-29 Thread via Digitalmars-d-learn
On Friday, 29 August 2014 at 11:23:34 UTC, Robin Schroer wrote: I'm not entirely sure where to post, so I will put it here. This is the right place. I'm playing around with D and Derelict 3 to make something with OpenGL (don't really know what yet). I managed to open a window, add an

Re: Strange segfault (Derelict/OpenGL)

2014-08-29 Thread Robin Schroer via Digitalmars-d-learn
On Friday, 29 August 2014 at 11:51:47 UTC, Marc Schütz wrote: On Friday, 29 August 2014 at 11:23:34 UTC, Robin Schroer wrote: Upon running with gdb, I get: Program received signal SIGSEGV, Segmentation fault. 0x in ?? () which is not really helpful to me. Can you still try

Re: Strange segfault (Derelict/OpenGL)

2014-08-29 Thread ponce via Digitalmars-d-learn
On Friday, 29 August 2014 at 11:23:34 UTC, Robin Schroer wrote: I'm not entirely sure where to post, so I will put it here. I'm playing around with D and Derelict 3 to make something with OpenGL (don't really know what yet). I managed to open a window, add an OpenGL context, clear the screen

Re: Strange segfault (Derelict/OpenGL)

2014-08-29 Thread Robin Schroer via Digitalmars-d-learn
On Friday, 29 August 2014 at 12:41:38 UTC, ponce wrote: On Friday, 29 August 2014 at 11:23:34 UTC, Robin Schroer wrote: I'm not entirely sure where to post, so I will put it here. I'm playing around with D and Derelict 3 to make something with OpenGL (don't really know what yet). I managed to

Re: Strange segfault (Derelict/OpenGL)

2014-08-29 Thread Andrej Mitrovic via Digitalmars-d-learn
On 8/29/14, Robin Schroer via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: I definitely reload after setting the context and before trying to render. Typically these kinds of errors happen when a null function pointer is called. I'd add a few checks in some places to see what

Re: Strange segfault (Derelict/OpenGL)

2014-08-29 Thread Mike Parker via Digitalmars-d-learn
On 8/29/2014 9:16 PM, Robin Schroer wrote: On Friday, 29 August 2014 at 11:51:47 UTC, Marc Schütz wrote: display.Display.render() is what tries to render the triangle using a glBegin-block. Some code would be helpful. My first thought is that you aren't loading properly. DerelictGL3 does