qt5base-lts/examples/opengl/hellowindow
Michal Klocek 5786ac12f0 Fix hellowindow example
It seems this example never worked as expected.
It has a 'multiple' option which should show extra
windows with rendering taking place in different
thread, however although render is moved to other thread
render() function was never called in that thread.

Fix following things:
 * make rendering in other thread
 * stop requestUpdate if nothing is exposed
 * add timer so animation works at the same speed despite
   of number of windows (renderer B renders two windows)
 * wait for render to finish before triggering requestUdpate
 * remove mutex where not needed

Pick-to: 5.15
Change-Id: I420436bd28d0357534332dd55b088d634d906c14
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
2020-05-25 17:37:57 +02:00
..
CMakeLists.txt Move QOpenGLShaderProgram from QtGui to QtOpenGL 2020-02-20 16:11:02 +01:00
hellowindow.cpp Fix hellowindow example 2020-05-25 17:37:57 +02:00
hellowindow.h Fix hellowindow example 2020-05-25 17:37:57 +02:00
hellowindow.pro Move QOpenGLShaderProgram from QtGui to QtOpenGL 2020-02-20 16:11:02 +01:00
main.cpp OpenGL examples: Introduce QCommandLineParser 2017-09-05 10:54:15 +00:00