summaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellowindow/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/hellowindow/main.cpp')
-rw-r--r--examples/opengl/hellowindow/main.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/opengl/hellowindow/main.cpp b/examples/opengl/hellowindow/main.cpp
index 1b80dc7523..af5943adf4 100644
--- a/examples/opengl/hellowindow/main.cpp
+++ b/examples/opengl/hellowindow/main.cpp
@@ -6,8 +6,13 @@ int main(int argc, char **argv)
{
QGuiApplication app(argc, argv);
- HelloWindow window;
- window.setVisible(true);
+ Renderer renderer;
+
+ HelloWindow windowA(&renderer);
+ windowA.setVisible(true);
+
+ HelloWindow windowB(&renderer);
+ windowB.setVisible(true);
return app.exec();
}