From 62e6608f6932c6d871d17b0ccce0c7b388866458 Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Tue, 10 Jul 2012 19:13:19 +0200 Subject: Add protected virtual ensureActiveTarget() to QOpenGLPaintDevice Make sure that QOpenGLPaintDevice supports it the same way as QGLPaintDevice::ensureActiveTarget dit. It is made virtual since the external code needs to manage FBOs for QOpenGLPaintEngine. Task-number: QTBUG-25995 Change-Id: Ieed9616f6a14204aae628d7febe6a11538496b3d Reviewed-by: Kim M. Kalland --- src/gui/opengl/qopenglpaintdevice.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/opengl/qopenglpaintdevice.h') diff --git a/src/gui/opengl/qopenglpaintdevice.h b/src/gui/opengl/qopenglpaintdevice.h index a07d11062f..44acbab031 100644 --- a/src/gui/opengl/qopenglpaintdevice.h +++ b/src/gui/opengl/qopenglpaintdevice.h @@ -80,6 +80,8 @@ public: void setPaintFlipped(bool flipped); bool paintFlipped() const; + virtual void ensureActiveTarget(); + protected: int metric(QPaintDevice::PaintDeviceMetric metric) const; -- cgit v1.2.3