Derelict, SDL, and OpenGL3: Triangle Tribulations

Mike Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Aug 11 22:50:50 PDT 2015


On Wednesday, 12 August 2015 at 05:34:22 UTC, BBasile wrote:
> static this()
> {
>     DerelictGL3.load;
>     DerelictGL.load;
>     DerelictSDL2.load;
>     SDL_Init(SDL_INIT_VIDEO);
> }
>

I should point out that *either* DerelictGL3 *or* DerelictGL 
should be loaded, but never both. DerelictGL actually extends 
DerelictGL3. When you call load on it, it calls super.load (ditto 
for reload), with the net effect that you're loading all of the 
DerelictGL3 stuff twice. If you need the deprecated stuff, just 
use DerelictGL; if you don't, just use DerelictGL3.


More information about the Digitalmars-d-learn mailing list