diff options
author | Maurice Kalinowski <maurice.kalinowski@theqtcompany.com> | 2016-01-07 13:20:08 +0100 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@theqtcompany.com> | 2016-01-11 10:06:26 +0000 |
commit | 2b1f01426c1ee47474b4b8e4e53799d992d0711c (patch) | |
tree | 65c7cf87fc90fed9e99a03c49294b480ac1322e4 /qmake/option.h | |
parent | 558f69a18b0ac2a54fdbc44377ef963c8db89ad6 (diff) |
WinRT: Fix application shutdown
Do not create a dummy eglDisplay when the global static is constructed.
This causes ANGLE to wrongly set some internals, which breaks usage of
EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE as the attribute map
might be empty after calling eglGetPlatformDisplayEXT. Furthermore
initialize() assigns a new display to it without terminating the old
one. This way, the internal suspend handler in ANGLE (Trim11.cpp) will
be added to the application.
The suspend handler is not invoked when an application suspends though.
Reason being that the handler needs to be added from inside the Xaml
thread. As we cannot control this inside ANGLE, we will call
eglInitialize inside the Xaml thread and hence get the suspend event
properly.
Task-number: QTBUG-50337
Task-number: QTBUG-50292
Change-Id: I3867377254c37084bf24f18e78af467f6237db57
Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
Diffstat (limited to 'qmake/option.h')
0 files changed, 0 insertions, 0 deletions