jpaoneMines / csci441

CSCI441 Library Helper Functions and Classes
MIT License
5 stars 2 forks source link

Add OpenGL 4.3 Debug callback #29

Open jpaoneMines opened 11 months ago

jpaoneMines commented 11 months ago

glfwWindowHint( GLFW_OPENGL_DEBUG_CONTEXT, GL_TRUE ); glEnable( GL_DEBUG_OUTPUT );

void debug_callback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar msg, const void params);

glDebugMessageCallback( debug_callback, nullptr ); glDebugMessageControl( GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, NULL, GL_TRUE );