Browse Source

GL: improve a test.

It's tested everywhere but here so I guess it was some accidental
omission.
pull/371/head
Vladimír Vondruš 6 years ago
parent
commit
b5d9e1cfb7
  1. 1
      src/Magnum/GL/Test/PixelFormatTest.cpp

1
src/Magnum/GL/Test/PixelFormatTest.cpp

@ -203,6 +203,7 @@ void PixelFormatTest::mapFormatUnsupported() {
std::ostringstream out; std::ostringstream out;
Error redirectError{&out}; Error redirectError{&out};
CORRADE_VERIFY(!hasPixelFormat(Magnum::PixelFormat::RGB16UI));
pixelFormat(Magnum::PixelFormat::RGB16UI); pixelFormat(Magnum::PixelFormat::RGB16UI);
CORRADE_COMPARE(out.str(), "GL::pixelFormat(): format PixelFormat::RGB16UI is not supported on this target\n"); CORRADE_COMPARE(out.str(), "GL::pixelFormat(): format PixelFormat::RGB16UI is not supported on this target\n");
#endif #endif

Loading…
Cancel
Save