Configuring DerelictGL3

Mike Parker aldacron at gmail.com
Thu Jul 19 09:41:34 UTC 2018


On Thursday, 19 July 2018 at 00:27:58 UTC, Entity325 wrote:

>
> So I'm using the standard process:
> DerelictGL3.load();
> glContext = SDL_GL_CreateContext(sdlWindow);
> GLVersion glVersion = DerelictGL3.reload();
>
> About 1/3 of the time, the program hangs on the 3rd line and 
> never gets past it.
>
> Currently tracking whether admittedly odd things I'm doing with 
> threads might be the culprit. I have a growing suspicion they 
> might be.

Are you doing all of that in the main thread, or a separate one?

>
> Looking forward to the BindBC release. I assume it's more or 
> less intended to be a drop-in replacement for Derelict, with 
> normal allowances for version-to-version updating, but more 
> stable.

The loader is not a drop-in replacement. Different function 
names, different error-handling mechanism, different compile-time 
configuration. And it has nothing to do with stability. The 
Derelict packages are quite stable. The whole point of BindBC is 
to make the loader fully @nogc and -betterC compatible while 
simultaneously making maintenance more sensible than what 
Derelict evolved into.



More information about the Digitalmars-d-learn mailing list