mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:02:55 +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() {
|
void OffscreenQmlSurface::cleanup() {
|
||||||
_canvas->makeCurrent();
|
_canvas->makeCurrent();
|
||||||
_renderControl->invalidate();
|
|
||||||
|
delete _renderControl; // and invalidate
|
||||||
|
|
||||||
if (_depthStencil) {
|
if (_depthStencil) {
|
||||||
glDeleteRenderbuffers(1, &_depthStencil);
|
glDeleteRenderbuffers(1, &_depthStencil);
|
||||||
_depthStencil = 0;
|
_depthStencil = 0;
|
||||||
|
@ -237,7 +239,6 @@ OffscreenQmlSurface::~OffscreenQmlSurface() {
|
||||||
QObject::disconnect(&_updateTimer);
|
QObject::disconnect(&_updateTimer);
|
||||||
QObject::disconnect(qApp);
|
QObject::disconnect(qApp);
|
||||||
|
|
||||||
|
|
||||||
cleanup();
|
cleanup();
|
||||||
|
|
||||||
_canvas->deleteLater();
|
_canvas->deleteLater();
|
||||||
|
|
Loading…
Reference in a new issue