diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2024-02-21 12:23:06 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-02-26 19:17:01 +0000 |
commit | ea1f95b6e43e50749ce32d9ff10839c97348913f (patch) | |
tree | a578082325dc387af2cb570ed0754749d87dc2ff | |
parent | 1ea3079054dd660b6acdab3889035d9d4c8675a8 (diff) |
balsam/iblbaker: Destroy offscreensurface with OpenGL
Fixes: QTBUG-122143
Pick-to: 6.5
Change-Id: I7af96ab6153acdf7d4467457177bbbaeb201b772
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
(cherry picked from commit 876118d48996f907342fadb83f162080a43ef479)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 2243829792320a42eb800065d476f54a5ab697e4)
-rw-r--r-- | src/iblbaker/qssgiblbaker.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/iblbaker/qssgiblbaker.cpp b/src/iblbaker/qssgiblbaker.cpp index 7a99a50c..71e3a983 100644 --- a/src/iblbaker/qssgiblbaker.cpp +++ b/src/iblbaker/qssgiblbaker.cpp @@ -657,7 +657,9 @@ QString renderToKTXFile(const QString &inPath, const QString &outPath) params.format.setVersion(3, 0); } params.fallbackSurface = QRhiGles2InitParams::newFallbackSurface(); - return renderToKTXFileInternal("OpenGL", inPath, outPath, QRhi::OpenGLES2, ¶ms); + const QString result = renderToKTXFileInternal("OpenGL", inPath, outPath, QRhi::OpenGLES2, ¶ms); + delete params.fallbackSurface; + return result; } #endif |