diff options
author | Jo Asplin <jo.asplin@nokia.com> | 2011-09-09 14:35:13 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-09-09 14:59:44 +0200 |
commit | 8eb5ba3b9cb1e8e07f28a3153672a946b2d82fd9 (patch) | |
tree | 5339bc2bb9a72b69fa7b7ae3650d4d58e79eff6a /tests | |
parent | 78fd8653914c11b78506fae5d5e77947785f57de (diff) |
Fixed build error in tst_qopengl
QOpenGLFramebufferObject must be wrapped in a QOpenGLPaintDevice
before being passed to QPainter::begin().
Change-Id: Ic82f8f17b2ea18a3790de7e75f0dd6c9092528ed
Reviewed-on: http://codereview.qt-project.org/4541
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qopengl/tst_qopengl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qopengl/tst_qopengl.cpp b/tests/auto/qopengl/tst_qopengl.cpp index 353391c543..02c6c7e986 100644 --- a/tests/auto/qopengl/tst_qopengl.cpp +++ b/tests/auto/qopengl/tst_qopengl.cpp @@ -346,7 +346,8 @@ void tst_QOpenGL::fboRendering() } QPainter fboPainter; - bool painterBegun = fboPainter.begin(fbo); + QOpenGLPaintDevice device(fbo->width(), fbo->height()); + bool painterBegun = fboPainter.begin(&device); QVERIFY(painterBegun); qt_opengl_draw_test_pattern(&fboPainter, fbo->width(), fbo->height()); |