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.
0x0000000000000000 in ?? ()

which is not really helpful to me.

Can you still try to get a backtrace with `bt`? This looks like it's calling a null function pointer. I'm not familiar with Derelict, but I remember that some initialization needs to be done which involves setting up function pointers; your problem is probably related to that.

Yes, I can:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1 0x00000000004ad33e in display.Display.render() (this=0x7ffff7ecfe00)
    at source/dgame/display.d:95
#2  0x00000000004a01d5 in D main (args=...) at source/app.d:41
#3  0x00000000004cd9af in rt.dmain2._d_run_main() ()
#4  0x00000000004cd902 in rt.dmain2._d_run_main() ()
#5  0x00000000004cd968 in rt.dmain2._d_run_main() ()
#6  0x00000000004cd902 in rt.dmain2._d_run_main() ()
#7  0x00000000004cd883 in _d_run_main ()
#8  0x00000000004acfb5 in main ()

display.Display.render() is what tries to render the triangle using a glBegin-block.

Reply via email to