OpenGLRenderer: Implement debug region data

This commit is contained in:
Jérôme Leclercq
2021-02-20 19:10:32 +01:00
parent 8f9f943e2c
commit f7442982a4
3 changed files with 16 additions and 5 deletions

View File

@@ -644,8 +644,11 @@ namespace Nz::GL
void Context::HandleDebugMessage(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message) const
{
if (id == 0)
return;
std::stringstream ss;
ss << "OpenGL debug message (ID: 0x" << std::to_string(id) << "):\n";
ss << "OpenGL debug message (ID: 0x" << id << "):\n";
ss << "Sent by context: " << this;
ss << "\n-Source: ";
switch (source)