From bbc5e118b2f28f0300801584f4dda7afcc24b2ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 7 Jan 2025 13:06:06 +0100 Subject: [PATCH] GL: that's fancy casts for you, you get CRASHES. Sigh. I was really sure I commited this one back in cc608dba42493fb9dbc5c859d158b2fb31aa6018, but apparently not. --- src/Magnum/GL/Test/DebugOutputGLTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/GL/Test/DebugOutputGLTest.cpp b/src/Magnum/GL/Test/DebugOutputGLTest.cpp index dad1d1e5c..9e14d121a 100644 --- a/src/Magnum/GL/Test/DebugOutputGLTest.cpp +++ b/src/Magnum/GL/Test/DebugOutputGLTest.cpp @@ -137,7 +137,7 @@ void DebugOutputGLTest::setCallbackDeprecated() { DebugOutput::setDefaultCallback(); }}; - Containers::String out; + std::ostringstream out; CORRADE_IGNORE_DEPRECATED_PUSH 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(const_cast(userPtr))); @@ -148,7 +148,7 @@ void DebugOutputGLTest::setCallbackDeprecated() { 1337, DebugOutput::Severity::High, "Hello from OpenGL command stream!"); 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"); } #endif