From 8eb5ba3b9cb1e8e07f28a3153672a946b2d82fd9 Mon Sep 17 00:00:00 2001 From: Jo Asplin Date: Fri, 9 Sep 2011 14:35:13 +0200 Subject: [PATCH] Fixed build error in tst_qopengl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tests/auto/qopengl/tst_qopengl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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());