|
|
|
|
@ -36,12 +36,15 @@ namespace Magnum {
|
|
|
|
|
|
|
|
|
|
namespace { |
|
|
|
|
|
|
|
|
|
/** @todo Re-enable when extension wrangler is available for ES */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
#ifdef CORRADE_TARGET_WINDOWS |
|
|
|
|
APIENTRY |
|
|
|
|
#endif |
|
|
|
|
void callbackWrapper(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam) { |
|
|
|
|
Context::current()->state().debug->messageCallback(DebugMessage::Source(source), DebugMessage::Type(type), id, DebugMessage::Severity(severity), std::string(message, length), userParam); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
void defaultCallback(const DebugMessage::Source source, const DebugMessage::Type type, const UnsignedInt id, const DebugMessage::Severity severity, const std::string& string, const void*) { |
|
|
|
|
switch(severity) { |
|
|
|
|
|