summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-12-09 17:43:23 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-12-10 10:35:39 +0000
commit975b14df8e9bd7fa701a6b028d4d85aada02a65b (patch)
tree4e6a77a2ae54b2f4b7f8d7d0165de4132b7b8cb6
parent713d737b1ff73e76c6543198ce9299e1c83ac147 (diff)
Calm unit test down for GL row-strides.
Change-Id: Ie4123fc692f4fac33f082bb2d86b949d834f1858
-rw-r--r--vcl/qa/cppunit/BitmapTest.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/BitmapTest.cxx b/vcl/qa/cppunit/BitmapTest.cxx
index eb393bc5c538..fe8c933668d1 100644
--- a/vcl/qa/cppunit/BitmapTest.cxx
+++ b/vcl/qa/cppunit/BitmapTest.cxx
@@ -55,7 +55,8 @@ void BitmapTest::testConvert()
//it would be nice to find and change the stride for quartz to be the same as everyone else
CPPUNIT_ASSERT_EQUAL(static_cast<sal_uLong>(10), pReadAccess->GetScanlineSize());
#else
- CPPUNIT_ASSERT_EQUAL(static_cast<sal_uLong>(12), pReadAccess->GetScanlineSize());
+ if (!OpenGLHelper::isVCLOpenGLEnabled())
+ CPPUNIT_ASSERT_EQUAL(static_cast<sal_uLong>(12), pReadAccess->GetScanlineSize());
#endif
CPPUNIT_ASSERT(pReadAccess->HasPalette());
const BitmapColor& rColor = pReadAccess->GetPaletteColor(pReadAccess->GetPixelIndex(1, 1));