|
|
|
@ -137,7 +137,7 @@ void DebugOutputGLTest::setCallbackDeprecated() { |
|
|
|
DebugOutput::setDefaultCallback(); |
|
|
|
DebugOutput::setDefaultCallback(); |
|
|
|
}}; |
|
|
|
}}; |
|
|
|
|
|
|
|
|
|
|
|
Containers::String out; |
|
|
|
std::ostringstream out; |
|
|
|
CORRADE_IGNORE_DEPRECATED_PUSH |
|
|
|
CORRADE_IGNORE_DEPRECATED_PUSH |
|
|
|
DebugOutput::setCallback([](DebugOutput::Source source, DebugOutput::Type type, UnsignedInt id, DebugOutput::Severity severity, const std::string& string, const void* userPtr) { |
|
|
|
DebugOutput::setCallback([](DebugOutput::Source source, DebugOutput::Type type, UnsignedInt id, DebugOutput::Severity severity, const std::string& string, const void* userPtr) { |
|
|
|
Implementation::defaultDebugCallback(source, type, id, severity, string, static_cast<std::ostringstream*>(const_cast<void*>(userPtr))); |
|
|
|
Implementation::defaultDebugCallback(source, type, id, severity, string, static_cast<std::ostringstream*>(const_cast<void*>(userPtr))); |
|
|
|
@ -148,7 +148,7 @@ void DebugOutputGLTest::setCallbackDeprecated() { |
|
|
|
1337, DebugOutput::Severity::High, "Hello from OpenGL command stream!"); |
|
|
|
1337, DebugOutput::Severity::High, "Hello from OpenGL command stream!"); |
|
|
|
|
|
|
|
|
|
|
|
MAGNUM_VERIFY_NO_GL_ERROR(); |
|
|
|
MAGNUM_VERIFY_NO_GL_ERROR(); |
|
|
|
CORRADE_COMPARE(out, |
|
|
|
CORRADE_COMPARE(out.str(), |
|
|
|
"Debug output: high severity application marker (1337): Hello from OpenGL command stream!\n"); |
|
|
|
"Debug output: high severity application marker (1337): Hello from OpenGL command stream!\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|