aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-12-15 12:37:38 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-15 12:37:38 -0800
commitf46a124ddd31ca4053c1719d720a74eb4a3cad6d (patch)
treeda38da2bedfd898286fd07817b1080c3bcc15a0f /tests
parent66957946c0c418e71c0f36bb2904cc38c334eba4 (diff)
Set GL_PACK_ALIGNMENT before calling glReadPixels
Diffstat (limited to 'tests')
-rw-r--r--tests/ReadWriteAlphaTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ReadWriteAlphaTest.cpp b/tests/ReadWriteAlphaTest.cpp
index a40f2c6457..1ee6b09a99 100644
--- a/tests/ReadWriteAlphaTest.cpp
+++ b/tests/ReadWriteAlphaTest.cpp
@@ -13,8 +13,9 @@
#include "GrContext.h"
#include "SkGpuDevice.h"
-static const int X_SIZE = 12;
-static const int Y_SIZE = 12;
+// This was made indivisible by 4 to ensure we test setting GL_PACK_ALIGNMENT properly.
+static const int X_SIZE = 13;
+static const int Y_SIZE = 13;
DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ReadWriteAlpha, reporter, context) {
unsigned char textureData[X_SIZE][Y_SIZE];