|
|
|
@ -58,7 +58,12 @@ openglDebugCallback(GLenum source, |
|
|
|
const GLchar* message, |
|
|
|
const GLchar* message, |
|
|
|
const void* userParam) |
|
|
|
const void* userParam) |
|
|
|
{ |
|
|
|
{ |
|
|
|
std::cout << ((type == GL_DEBUG_TYPE_ERROR) ? "Error" : "Debug") |
|
|
|
// NOTE: filter out notification about using video memory for buffer object
|
|
|
|
|
|
|
|
if (id == 131185) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::cout << "message id: " << id << ", " |
|
|
|
|
|
|
|
<< ((type == GL_DEBUG_TYPE_ERROR) ? "Error" : "Debug") |
|
|
|
<< (type == GL_DEBUG_TYPE_ERROR ? "** GL Error **" : "") |
|
|
|
<< (type == GL_DEBUG_TYPE_ERROR ? "** GL Error **" : "") |
|
|
|
<< ", type: " << glEnumToString(type) |
|
|
|
<< ", type: " << glEnumToString(type) |
|
|
|
<< ", severity: " << glEnumToString(severity) |
|
|
|
<< ", severity: " << glEnumToString(severity) |
|
|
|
|