diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2016-10-04 12:58:02 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2016-10-13 13:50:48 +0000 |
commit | 342f18c71f51227a062bd204037541ecae150846 (patch) | |
tree | d13ff1092f518511704f0cbd8d9af7aaef338a21 /src/quick/accessible/qaccessiblequickitem.cpp | |
parent | f720242419cd73529277173e43e9f7a8ed367ad3 (diff) |
Check qgl_current_fbo_invalid before using qgl_current_fbo
QSG24BitTextMaskShader::useSRGB() on macOS accesses the current context
qgl_current_fbo member without first checking if it is valid.
Make sure it also checks qgl_current_fbo_invalid, thus not accidentally
dereferencing a dangling pointer.
Change-Id: I56a77de23ee3b4b271bd848506ff26e14d7b6d15
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/quick/accessible/qaccessiblequickitem.cpp')
0 files changed, 0 insertions, 0 deletions