Glad and WGL

Josh Phillips via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 15 11:51:56 PST 2016


On Friday, 15 January 2016 at 07:37:27 UTC, Josh Phillips wrote:
> However I (of course) ran into new errors. Gl functions like 
> glGetString and glGetIntegerv cause the program to crash. It 
> appears that an opengl context is being created so I'm not sure 
> whats causing the problem

For anyone else with this issue I finally figured it out. You 
have to call gladLoadGL AFTER you set the glContext and before 
you call any gl code.


More information about the Digitalmars-d-learn mailing list