Browse Source

Fix comparison in AbstractShaderProgram test.

Confirmed by @LB-- that it works on AMD. NVidia is producing garbage.
What the hell, NV?
pull/132/head
Vladimír Vondruš 10 years ago
parent
commit
51a76ef87f
  1. 6
      src/Magnum/Test/AbstractShaderProgramGLTest.cpp

6
src/Magnum/Test/AbstractShaderProgramGLTest.cpp

@ -25,6 +25,7 @@
#include <sstream>
#include <Corrade/Utility/Resource.h>
#include <Corrade/TestSuite/Compare/Container.h>
#include "Magnum/AbstractShaderProgram.h"
#include "Magnum/Context.h"
@ -712,9 +713,10 @@ void AbstractShaderProgramGLTest::compute() {
MAGNUM_VERIFY_NO_ERROR();
CORRADE_COMPARE(
CORRADE_COMPARE_AS(
(Corrade::Containers::ArrayView<const Color4ub>{reinterpret_cast<const Color4ub*>(data.data()), 4}),
(Corrade::Containers::ArrayView<const Color4ub>{outData}));
(Corrade::Containers::ArrayView<const Color4ub>{outData}),
TestSuite::Compare::Container);
#endif
}
#endif

Loading…
Cancel
Save