diff --git a/src/Magnum/Test/PixelStorageGLTest.cpp b/src/Magnum/Test/PixelStorageGLTest.cpp index ebe74dbde..01c0e6291 100644 --- a/src/Magnum/Test/PixelStorageGLTest.cpp +++ b/src/Magnum/Test/PixelStorageGLTest.cpp @@ -131,6 +131,11 @@ void PixelStorageGLTest::unpack2D() { MAGNUM_VERIFY_NO_ERROR(); + /* Clear padding in the last row (the driver might leave them untouched, + confirmed on NVidia 355.11) */ + CORRADE_VERIFY(actual.data().size() == Containers::ArrayView{ActualData}.size()); + *(actual.data().end() - 1) = *(actual.data().end() - 2) = 0; + CORRADE_COMPARE_AS(actual.data(), Containers::ArrayView{ActualData}, TestSuite::Compare::Container); }