From 1b1831500142c995137f5e4b1bc03d21aa08e1e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Wed, 7 Sep 2011 10:31:03 +0200 Subject: Improved and made public the QOpenGLPaintDevice API. The new API is more flexible, allowing the use of QOpenGLPaintDevice with any QOpenGLContext, and putting more responsibility on the user for ensuring the correct FBO is current (the user knows best anyhow). Task-number: QTBUG-21263 Change-Id: I50b954125f552baef52fbb3fe2ed907a11ad519c Reviewed-on: http://codereview.qt-project.org/4325 Reviewed-by: Qt Sanity Bot Reviewed-by: Paul Olav Tvete --- src/gui/opengl/qopengl_p.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/gui/opengl/qopengl_p.h') diff --git a/src/gui/opengl/qopengl_p.h b/src/gui/opengl/qopengl_p.h index 309ea22acd..59368f1a7b 100644 --- a/src/gui/opengl/qopengl_p.h +++ b/src/gui/opengl/qopengl_p.h @@ -80,26 +80,6 @@ private: QVector m_offsets; }; -// this is a class that wraps a QThreadStorage object for storing -// thread local instances of the GL 1 and GL 2 paint engines - -class QPaintEngine; - -template -class QOpenGLEngineThreadStorage -{ -public: - QPaintEngine *engine() { - QPaintEngine *&localEngine = storage.localData(); - if (!localEngine) - localEngine = new T; - return localEngine; - } - -private: - QThreadStorage storage; -}; - class QOpenGLTexture : public QOpenGLSharedResource { public: QOpenGLTexture(QOpenGLContext *ctx, GLuint id, bool inverted) -- cgit v1.2.3