From f39beda8f1d07280d8b6844f0cad86740e38c3cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 16 Oct 2023 14:32:41 +0200 Subject: [PATCH] TextureTools: remove test code that assumed GL debug output is always on. It's not the case for quite a while, and especially for GPU benchmarks it'd be harmful. --- src/Magnum/TextureTools/Test/DistanceFieldGLTest.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/Magnum/TextureTools/Test/DistanceFieldGLTest.cpp b/src/Magnum/TextureTools/Test/DistanceFieldGLTest.cpp index 9d60d20d7..20fed29f3 100644 --- a/src/Magnum/TextureTools/Test/DistanceFieldGLTest.cpp +++ b/src/Magnum/TextureTools/Test/DistanceFieldGLTest.cpp @@ -53,10 +53,6 @@ #include "Magnum/Trade/AbstractImporter.h" #include "Magnum/Trade/ImageData.h" -#ifndef MAGNUM_TARGET_WEBGL -#include "Magnum/GL/DebugOutput.h" -#endif - #include "configure.h" namespace Magnum { namespace TextureTools { namespace Test { namespace { @@ -344,9 +340,6 @@ void DistanceFieldGLTest::benchmark() { DistanceField distanceField{32}; - /* So it doesn't spam too much */ - GL::DebugOutput::setCallback(nullptr); - CORRADE_BENCHMARK(25) { distanceField(input, framebuffer, {{}, Vector2i{64}} #ifdef MAGNUM_TARGET_GLES @@ -356,8 +349,6 @@ void DistanceFieldGLTest::benchmark() { } MAGNUM_VERIFY_NO_GL_ERROR(); - - GL::DebugOutput::setDefaultCallback(); } #endif