Browse Source

Fix wrongly calculated expected PixelStorage test values on WebGL 1.

pull/162/merge
Vladimír Vondruš 10 years ago
parent
commit
ce0941130c
  1. 4
      src/Magnum/Test/PixelStorageTest.cpp

4
src/Magnum/Test/PixelStorageTest.cpp

@ -192,7 +192,7 @@ void PixelStorageTest::dataSize2D() {
#if defined(MAGNUM_TARGET_WEBGL) && defined(MAGNUM_TARGET_GLES2)
CORRADE_COMPARE(Implementation::imageDataSizeFor(image, Vector2i{5, 9}),
(3 + 9)*15);
(3 + 9)*16);
#else
CORRADE_COMPARE(Implementation::imageDataSizeFor(image, Vector2i{5, 9}),
(3 + 9)*22);
@ -213,7 +213,7 @@ void PixelStorageTest::dataSize3D() {
#if defined(MAGNUM_TARGET_WEBGL) && defined(MAGNUM_TARGET_GLES2)
CORRADE_COMPARE(Implementation::imageDataSizeFor(image, Vector3i{5, 9, 3}),
(1 + 3)*9*15);
(1 + 3)*9*16);
#elif defined(MAGNUM_TARGET_GLES2)
CORRADE_COMPARE(Implementation::imageDataSizeFor(image, Vector3i{5, 9, 3}),
(1 + 3)*9*22);

Loading…
Cancel
Save