Strange segfault (Derelict/OpenGL)
Robin Schroer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Aug 29 05:45:50 PDT 2014
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 open a
>> window, add an OpenGL context, clear the screen and flip
>> buffers. But as soon as I try to render a triangle, my program
>> crashes.
>
> As John Colvin said, forgetting to call DerelictGL3.reload() is
> a common error.
I definitely reload after setting the context and before trying
to render.
More information about the Digitalmars-d-learn
mailing list