Commit ff6b175a authored by Pierre Rossi's avatar Pierre Rossi Committed by Pierre Rossi
Browse files

Support Qt::AA_ShareOpenGLContexts


QtWebEngine::initialize happens after QGuiApplication instantiation,
so it is too late to simply set the application attribute.
In that scenario, we don't want to override the shared context and risk
a double free when both QGuiApplication and our cleanup handler try
to delete it.

Change-Id: Id52884abbb0c2380208876d9c00e8ddbfbc21eda
Reviewed-by: default avatarJocelyn Turcotte <jocelyn.turcotte@digia.com>
Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
parent 2282c660
Showing with 13 additions and 4 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment