Original Post
Hi guys, how would I convert my openGL errors GLubyte* to a string*? I have tries a reinterpret_cast, but can't get it working Thanks for any help given!
GLenum errCode;
const GLubyte* errString;
errCode = glGetError();
if (errCode != GL_NO_ERROR)
{
errString = gluErrorString(errCode);
}
GLenum errCode;
string* errString = NULL;
errCode = glGetError();
if (errCode != GL_NO_ERROR)
{
errString = reinterpret_cast<const string*>(gluErrorString(errCode));
}