diff options
| author | Morten Sørvig <morten.sorvig@qt.io> | 2022-05-06 11:41:36 +0200 |
|---|---|---|
| committer | Morten Sørvig <morten.sorvig@qt.io> | 2022-05-12 16:34:24 +0200 |
| commit | 83106badcdeab65254bf15a338ea10db91785f3e (patch) | |
| tree | dc8f877a12475bf357886cb59fcf26c9bf7682c3 /src/plugins/sqldrivers/mysql/qsql_mysql.cpp | |
| parent | b119f26a5663c5e3f82d82ad41e479a42115d954 (diff) | |
wasm: always call destroy() before deleting a screen
QWasmCompositor currently has the requirement that destroying it
requires freeing a GL texture, which requires a valid GL context,
which requires a valid screen, in order to get to the native context
on the canvas.
For this reason QWasmScreen has a destroy() function which is called
before deleting the QScreen and QPlatformScreen.
Make sure we call destroy() also when deleting all screens in the
QWasmIntegration destructor. Move the common logic into a new
deleteScreen() function which replaces destroy().
Change-Id: I628f13c868808db539effff9b29ecbefac23abc9
Reviewed-by: Aleksandr Reviakin <aleksandr.reviakin@qt.io>
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Reviewed-by: David Skoland <david.skoland@qt.io>
Diffstat (limited to 'src/plugins/sqldrivers/mysql/qsql_mysql.cpp')
0 files changed, 0 insertions, 0 deletions
