summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2015-09-23 14:38:48 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-09-23 15:50:52 +0000
commit867fc30c7c9be51b4b3813d2cc558b5a9df0256d (patch)
tree09febd3d18f0eda86ed3042fb7f80a235fcec8bd /tests/auto
parent47e4ae86a8d87ec6388d9423aba86d1498b49012 (diff)
windows: Improve error handling with EGL
When disabling the graphics adapter, things start failing with context lost and then bad_alloc and bad_access failures when creating contexts/window surfaces. Swap buffers now handles context loss. This makes it possible for Qt Quick to act when the graphics adapter goes away. Similarly, the window surface creation failure EGL_BAD_ACCESS is treated the same way as context loss. Note that this will not really help the main issue, because rendering is not possible without a GPU (reinit attempts will fail either at context creation or window surface creation), but proper logging and context loss reporting improves the situation somewhat. Also unify and prettyify the warning and debug prints. This makes it easier to understand what is going on. Change-Id: Iec3a9b54f1134e78e87eefcf938525283ec9412a Task-number: QTBUG-48095 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions