diff options
author | Paul Olav Tvete <paul.tvete@qt.io> | 2019-01-08 14:01:52 +0100 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@qt.io> | 2019-01-09 13:52:15 +0000 |
commit | 1e29215b2e40a38b9324a719888749e12a74e99c (patch) | |
tree | dace46839b2f1b465d6131a4c7766db58ae0823e /examples/wayland/qwindow-compositor/main.cpp | |
parent | 024be9dcae26a0d88ffb76f9fca252f2135ad7c9 (diff) |
C++ examples: Delay compositor initialization until GL is ready
When running with xcb_egl, the platform plugin's native interface is not
always ready immediately after the QGuiApplication constructor is done.
Calling QWaylandCompositor::create() at the time of initializeGL()
makes sure that everything is ready.
Change-Id: I9e5e434ff85b92a45caddfd393439a4ffe3bcdc6
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Diffstat (limited to 'examples/wayland/qwindow-compositor/main.cpp')
-rw-r--r-- | examples/wayland/qwindow-compositor/main.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/wayland/qwindow-compositor/main.cpp b/examples/wayland/qwindow-compositor/main.cpp index f2b00e889..9d8c1f78f 100644 --- a/examples/wayland/qwindow-compositor/main.cpp +++ b/examples/wayland/qwindow-compositor/main.cpp @@ -59,7 +59,6 @@ int main(int argc, char *argv[]) Window window; Compositor compositor(&window); window.setCompositor(&compositor); - compositor.create(); window.resize(800,600); window.show(); |