summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/offscreen
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2013-02-21 16:07:46 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-23 12:56:05 +0100
commit0077b5f30de7190227317247609c820f37466960 (patch)
treea8b3c00d322183b03e4c2595b25365d526398332 /src/plugins/platforms/offscreen
parent7e3ee5400ee13796d045879a5bc9d0be23b1b8ff (diff)
Pass the surface format to qglx_surfaceFormatFromGLXFBConfig
Instead of creating a default-constructed format and filling its field in, pass a pointer to an instance. This way we won't lose the renderable type set on the surface, but just fill in the other parameters. Change-Id: I1fd403671f9c677cc74aaf3c116a05f213d5d556 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src/plugins/platforms/offscreen')
-rw-r--r--src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp b/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp
index 4b27afd80f..6c6c516a4e 100644
--- a/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp
+++ b/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp
@@ -179,7 +179,7 @@ QOffscreenX11GLXContext::QOffscreenX11GLXContext(QOffscreenX11Info *x11, QOpenGL
// Get the basic surface format details
if (d->context)
- d->format = qglx_surfaceFormatFromGLXFBConfig(x11->display(), config, d->context);
+ qglx_surfaceFormatFromGLXFBConfig(&d->format, x11->display(), config, d->context);
// Create a temporary window so that we can make the new context current
d->window = createDummyWindow(x11, config);