summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/qopengl/tst_qopengl.cpp3
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());