Should dmd have given me a warning at least?
WhatMeWorry via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Sep 12 15:44:03 PDT 2014
// 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.
More information about the Digitalmars-d-learn
mailing list