August 30, 2014 Re: Strange segfault (Derelict/OpenGL) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robin Schroer | 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 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. > FYI, if you need the deprecated stuff it's all there. ``` // Modern GL only // import derelict.opengl3.gl3; // All of it, including the deprecated stuff import derelict.opengl3.gl; void loadGL() { DerelictGL.load(); DerelictGL.reload(); // Assuming a context is already created } ``` DerelictGL extends DerelictGL3, so it loads everything. --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com |
Copyright © 1999-2021 by the D Language Foundation