0
votes

String:

glDebugMessageCallbackARB(&DebugOutputCallback, NULL);

Give me error:

Description Resource Path Location Type invalid conversion from 'void (attribute((stdcall)) )(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar, GLvoid*) {aka void (attribute((stdcall)) )(unsigned int, unsigned int, unsigned int, unsigned int, int, const char, void*)}' to 'GLDEBUGPROCARB {aka void (attribute((stdcall)) )(unsigned int, unsigned int, unsigned int, unsigned int, int, const char, const void*)}' [-fpermissive]

Please tell me what wrong?

1

1 Answers

1
votes

The compiler is trying to tell you that the signature of your callback function should be

void (*)(GLenum, GLenum, GLuint, GLenum, GLsizei, GLchar, GLvoid const*)

The last parameter of the callback you are passing is GLvoid*, when it should be GLvoid const*.