summaryrefslogtreecommitdiffstats
path: root/examples/opengl/qopenglwindow/background_renderer.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <[email protected]>2014-08-06 10:23:43 +0200
committerLaszlo Agocs <[email protected]>2014-08-07 09:03:59 +0200
commit37023a096d5fec6937bca25047973a05041db66f (patch)
treedea33d5ee214410ad38f70db17cd431452490af3 /examples/opengl/qopenglwindow/background_renderer.cpp
parent4ff12977d820d817ea235c6fea3a7441ec19b80a (diff)
Avoid repaints and swapbuffers when the platform window is already gone
On Linux at least the qopenglwindow example sometimes shows "QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined" when closing the window and exiting the application. This patch avoids this by not triggering repaints anymore when the platform window is destroyed. Change-Id: I54bd41e5c1471f7cdfec89f8ec3be48d1438be39 Reviewed-by: Gunnar Sletta <[email protected]>
Diffstat (limited to 'examples/opengl/qopenglwindow/background_renderer.cpp')
0 files changed, 0 insertions, 0 deletions