Browse Source

DebugTools: check for different error string based on impl color read fmt.

pull/324/head
Vladimír Vondruš 7 years ago
parent
commit
06d2f0b598
  1. 6
      src/Magnum/DebugTools/Test/ScreenshotGLTest.cpp

6
src/Magnum/DebugTools/Test/ScreenshotGLTest.cpp

@ -212,7 +212,11 @@ void ScreenshotGLTest::unknownFormat() {
MAGNUM_VERIFY_NO_GL_ERROR();
CORRADE_VERIFY(!succeeded);
CORRADE_COMPARE(out.str(), "DebugTools::screenshot(): can't map (GL::PixelFormat::RGB, GL::PixelType::UnsignedShort565) to a generic pixel format\n");
if(framebuffer.implementationColorReadFormat() == GL::PixelFormat::RGBA)
CORRADE_COMPARE(out.str(), "DebugTools::screenshot(): can't map (GL::PixelFormat::RGBA, GL::PixelType::UnsignedShort565) to a generic pixel format\n");
else
CORRADE_COMPARE(out.str(), "DebugTools::screenshot(): can't map (GL::PixelFormat::RGB, GL::PixelType::UnsignedShort565) to a generic pixel format\n");
}
void ScreenshotGLTest::pluginLoadFailed() {

Loading…
Cancel
Save