Strange segfault (Derelict/OpenGL)
Robin Schroer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Aug 30 07:12:17 PDT 2014
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, 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 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 am using DerelictOrg, sorry if this was
unclear, I was under the impression that it is still version 3.
But anyway, I found out that some of my GL code is actually
refering to null pointers because I have been using deprecated
functions. So I am able to establish an OpenGL 3.3 context
without crashing (although my test does not render yet, but that
is another problem).
Thank you to everyone nudging me in the right direction.
--
Robin Schroer
More information about the Digitalmars-d-learn
mailing list