G
Gernot Frisch
GLcharARB* pC;
glShaderSourceARB(m_Shaders[index][2], 1, &pC, NULL);
error C2664: 'void (GLhandleARB,GLsizei,const GLcharARB ** ,const
GLint *)' :
cannot convert parameter 3 from 'GLcharARB **__w64 '
to 'const GLcharARB ** '
Conversion loses qualifiers
This works:
const GLcharARB** ppA;
memcpy(&ppA, &pVert, sizeof(char*));
glShaderSourceARB(m_Shaders[index][1], 1, ppA, NULL);
What have I done?
Using VC7.1 here.
glShaderSourceARB(m_Shaders[index][2], 1, &pC, NULL);
error C2664: 'void (GLhandleARB,GLsizei,const GLcharARB ** ,const
GLint *)' :
cannot convert parameter 3 from 'GLcharARB **__w64 '
to 'const GLcharARB ** '
Conversion loses qualifiers
This works:
const GLcharARB** ppA;
memcpy(&ppA, &pVert, sizeof(char*));
glShaderSourceARB(m_Shaders[index][1], 1, ppA, NULL);
What have I done?
Using VC7.1 here.