// the following two lines compile cleanly but when executed, I get
// D:\Projects\Derelict>02_SimpleOpenGL_3_3_program.exe // object.Error: Access Violation // ----------------
string glShadingLangVer = to!string(glGetString(GL_SHADING_LANGUAGE_VERSION));
writeln("glShadingLangVer is ", glShadingLangVer); glGetString has the following signature: const GLubyte* glGetString(GLenum name);I presume the const is causing the problem. Is there a work around?
Thanks.