Browse Source

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.
pull/168/head
Vladimír Vondruš 3 years ago
parent
commit
f39beda8f1
  1. 9
      src/Magnum/TextureTools/Test/DistanceFieldGLTest.cpp

9
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

Loading…
Cancel
Save