diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-07-08 06:28:35 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-07-08 07:56:03 (GMT) |
commit | 2b384a4df14fab0f377b04df24b67ee7634f8403 (patch) | |
tree | b8909c11a1eec1aea8b4d0b76f8adcf0ff6a6a44 /src/opengl/qgl_qpa.cpp | |
parent | 8ede118779b0b4cde591f3bf5ec94f7a6f25e2a7 (diff) | |
download | Qt-2b384a4df14fab0f377b04df24b67ee7634f8403.zip Qt-2b384a4df14fab0f377b04df24b67ee7634f8403.tar.gz Qt-2b384a4df14fab0f377b04df24b67ee7634f8403.tar.bz2 |
Make tempcontext use new lighthouse api
Diffstat (limited to 'src/opengl/qgl_qpa.cpp')
-rw-r--r-- | src/opengl/qgl_qpa.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/opengl/qgl_qpa.cpp b/src/opengl/qgl_qpa.cpp index 2003cc1..be2ef87 100644 --- a/src/opengl/qgl_qpa.cpp +++ b/src/opengl/qgl_qpa.cpp @@ -180,14 +180,16 @@ void QGLContext::generateFontDisplayLists(const QFont & fnt, int listBase) class QGLTemporaryContextPrivate { public: - QGLWidget *widget; + QWidget *widget; }; QGLTemporaryContext::QGLTemporaryContext(bool, QWidget *) : d(new QGLTemporaryContextPrivate) { - d->widget = new QGLWidget; - d->widget->makeCurrent(); + d->widget = new QWidget; + d->widget->setGeometry(0,0,3,3); + d->widget->winId(); + d->widget->platformWindow()->glContext()->makeCurrent(); } QGLTemporaryContext::~QGLTemporaryContext() |