diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-08-03 06:46:44 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-08-03 10:00:12 (GMT) |
commit | c0eb289559705e15fe13013c72a218e647ad6d90 (patch) | |
tree | 1f734f40e39ebf0a40c8a44ee245fd5e306d2364 /src/opengl | |
parent | 6e0edcce4c215f01416a5ee8467b7abe4665e592 (diff) | |
download | Qt-c0eb289559705e15fe13013c72a218e647ad6d90.zip Qt-c0eb289559705e15fe13013c72a218e647ad6d90.tar.gz Qt-c0eb289559705e15fe13013c72a218e647ad6d90.tar.bz2 |
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')
-rw-r--r-- | src/opengl/qgl_qpa.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/qgl_qpa.cpp b/src/opengl/qgl_qpa.cpp index 8fa210b..f859ff1 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; } |