diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2016-10-25 13:33:00 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2016-10-27 10:53:32 +0000 |
commit | d04207342ea4d22e42257eb0adc1048fd2e068b4 (patch) | |
tree | 2fec6f36766291a66f7c0760b1aeb99a02b91b34 /config.tests/unix/opengles3 | |
parent | 8e79806d08ab77aa0f87b69a2ef65789216f41c0 (diff) |
macOS: Fix crash in QCocoaBackingStore::format() after closing window
Closing a window results in sending an expose event to obscure the window,
which gets delivered after the corresponding QPlatformWindow has been
destroyed.
If the client application (wrongly) tries to render as a result of this
expose event, using the existing QBackingStore, it will potentially
result in a resize of the backing store, for example if the global
device pixel ratio is different from what the window had when it
still had a QPlatformWindow.
The resize in turn requires the format() of the window, but since we
no longer have a QPlatformWindow we can't base the format on that.
Change-Id: Ied6a3a745f20087c2287ad86e1c66808467b6183
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'config.tests/unix/opengles3')
0 files changed, 0 insertions, 0 deletions