mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Merge pull request #8862 from zzmp/fix/quick-leak
fix leak from qml surfaces' render controls
This commit is contained in:
commit
4a6101060c
1 changed files with 3 additions and 2 deletions
|
@ -122,7 +122,9 @@ void OffscreenQmlSurface::setupFbo() {
|
|||
|
||||
void OffscreenQmlSurface::cleanup() {
|
||||
_canvas->makeCurrent();
|
||||
_renderControl->invalidate();
|
||||
|
||||
delete _renderControl; // and invalidate
|
||||
|
||||
if (_depthStencil) {
|
||||
glDeleteRenderbuffers(1, &_depthStencil);
|
||||
_depthStencil = 0;
|
||||
|
@ -237,7 +239,6 @@ OffscreenQmlSurface::~OffscreenQmlSurface() {
|
|||
QObject::disconnect(&_updateTimer);
|
||||
QObject::disconnect(qApp);
|
||||
|
||||
|
||||
cleanup();
|
||||
|
||||
_canvas->deleteLater();
|
||||
|
|
Loading…
Reference in a new issue