mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
delete _renderControl after use
This commit is contained in:
parent
e247f0aa34
commit
02b4c43cff
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