diff options
| author | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-04-24 10:47:44 +0200 |
|---|---|---|
| committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-04-25 18:10:44 +0200 |
| commit | 11209cfde68e9b8b8722859c690e57c7d6e8a338 (patch) | |
| tree | dfd0c846f65cb38a0ac007b1e2869a07b81ae839 /src/openglwidgets/qopenglwidget.cpp | |
| parent | ab4125685ab60b3c061ec9e796133ee3ef268332 (diff) | |
gl: Check for image validity in readback
Returning a null QImage is preferable over passing a null bits()
to glReadPixels. (matters when QImage's malloc() gives null, thus
'd' is null -> isNull() == true)
Fixes: QTBUG-113127
Pick-to: 6.5 6.4 6.2 5.15
Change-Id: Ieca4d91eefdea47da5251dabe77cc31b48eb0e28
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/openglwidgets/qopenglwidget.cpp')
0 files changed, 0 insertions, 0 deletions
