diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-07-18 20:36:26 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-07-20 06:40:04 +0000 |
commit | cc27a50ef8d7de08df48ea25e89e6f1fb9f0dc2e (patch) | |
tree | 920513f4b030b24a5354f349a03d7ce95b114aac /tests/manual/qtexteditlist | |
parent | 8c91070606bffabb49d2d17fb78a78b459dd8bef (diff) |
QGLWidget: Gracefully handle failed makeCurrent during resize and paint event
The underlying QOpenGLContext may fail to be made current, e.g. if the
surface is not exposed, or the graphics hardware is not available.
Instead of trying to initialize and resize the GL viewport with a
non-current context, we return early and defer the init and resize
until later.
Change-Id: I278ca8f1ad4d3da2d5be18b44d775f8d6c8af726
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/manual/qtexteditlist')
0 files changed, 0 insertions, 0 deletions