summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_qpa.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-07-08 08:28:35 +0200
committerJørgen Lind <jorgen.lind@nokia.com>2010-07-08 09:56:03 +0200
commit2b384a4df14fab0f377b04df24b67ee7634f8403 (patch)
treeb8909c11a1eec1aea8b4d0b76f8adcf0ff6a6a44 /src/opengl/qgl_qpa.cpp
parent8ede118779b0b4cde591f3bf5ec94f7a6f25e2a7 (diff)
Make tempcontext use new lighthouse api
Diffstat (limited to 'src/opengl/qgl_qpa.cpp')
-rw-r--r--src/opengl/qgl_qpa.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/opengl/qgl_qpa.cpp b/src/opengl/qgl_qpa.cpp
index 2003cc18ee..be2ef875e0 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()