diff options
author | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-08-19 11:19:42 (GMT) |
---|---|---|
committer | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-08-19 13:25:44 (GMT) |
commit | e0e6fece5f79609a39a410044437e4d78eca56c6 (patch) | |
tree | ffd78373cdce89aa788e24e2d87affc67dd83da5 | |
parent | 6cf0ad80bb8a168115772aa5c3b4abec3e372ccc (diff) | |
download | Qt-e0e6fece5f79609a39a410044437e4d78eca56c6.zip Qt-e0e6fece5f79609a39a410044437e4d78eca56c6.tar.gz Qt-e0e6fece5f79609a39a410044437e4d78eca56c6.tar.bz2 |
Fix an obvious bug in tst_QGL::clipTest()
Reviewed-by: Samuel
-rw-r--r-- | tests/auto/qgl/tst_qgl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qgl/tst_qgl.cpp b/tests/auto/qgl/tst_qgl.cpp index 7fe461c..bdff5ed 100644 --- a/tests/auto/qgl/tst_qgl.cpp +++ b/tests/auto/qgl/tst_qgl.cpp @@ -1835,7 +1835,7 @@ void tst_QGL::clipTest() // Sample pixels in a grid pattern which avoids false failures due to // off-by-one pixel errors on some buggy GL implementations for (int x = 2; x < reference.width(); x += 5) { - for (int y = 2; y < reference.width(); y += 5) { + for (int y = 2; y < reference.height(); y += 5) { QFUZZY_COMPARE_PIXELS(widgetFB.pixel(x, y), reference.pixel(x, y)); } } |