summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_qpa.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-08-03 08:46:44 +0200
committerJørgen Lind <jorgen.lind@nokia.com>2010-08-03 12:00:12 +0200
commitc0eb289559705e15fe13013c72a218e647ad6d90 (patch)
tree1f734f40e39ebf0a40c8a44ee245fd5e306d2364 /src/opengl/qgl_qpa.cpp
parent6e0edcce4c215f01416a5ee8467b7abe4665e592 (diff)
Make it possible to view what format a QPlatformGlContext has
QPlatformGlContext has now a pure virtual format getter. The way its intended to work is that the tlw has a QPlatformWindowFormat which is the requested format. Once you get the QPlatformGlContext of the window, you can request the QPlatformWindowFormat of the context to see what you really got.
Diffstat (limited to 'src/opengl/qgl_qpa.cpp')
-rw-r--r--src/opengl/qgl_qpa.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/qgl_qpa.cpp b/src/opengl/qgl_qpa.cpp
index 8fa210bbbc..f859ff1c3b 100644
--- a/src/opengl/qgl_qpa.cpp
+++ b/src/opengl/qgl_qpa.cpp
@@ -134,6 +134,7 @@ bool QGLContext::chooseContext(const QGLContext* shareContext)
widget->winId();//make window
}
d->platformContext = widget->platformWindow()->glContext();
+ d->glFormat = qt_platformwindowformat_to_glformat(d->platformContext->platformWindowFormat());
d->valid =(bool) d->platformContext;
}