From 804f25740d2799fe3d9ffa2de3c05de881a488dc Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Sun, 13 Nov 2016 10:21:27 -0800 Subject: [PATCH] these qDebugs happen too late and cause a crash --- .../src/display-plugins/OpenGLDisplayPlugin.cpp | 2 +- libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/display-plugins/src/display-plugins/OpenGLDisplayPlugin.cpp b/libraries/display-plugins/src/display-plugins/OpenGLDisplayPlugin.cpp index c84f6b9954..90100d93c0 100644 --- a/libraries/display-plugins/src/display-plugins/OpenGLDisplayPlugin.cpp +++ b/libraries/display-plugins/src/display-plugins/OpenGLDisplayPlugin.cpp @@ -758,7 +758,7 @@ void OpenGLDisplayPlugin::render(std::function f) { OpenGLDisplayPlugin::~OpenGLDisplayPlugin() { - qDebug() << "Destroying OpenGLDisplayPlugin"; + // qDebug() << "Destroying OpenGLDisplayPlugin"; } void OpenGLDisplayPlugin::updateCompositeFramebuffer() { diff --git a/libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp b/libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp index fca809186f..0516bc6be0 100644 --- a/libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp +++ b/libraries/gpu-gl/src/gpu/gl45/GL45BackendTexture.cpp @@ -285,10 +285,10 @@ GL45Texture::GL45Texture(const std::weak_ptr& backend, const Texture& } GL45Texture::~GL45Texture() { - // External textures cycle very quickly, so don't spam the log with messages about them. - if (!_gpuObject.getUsage().isExternal()) { - qCDebug(gpugl45logging) << "Destroying texture " << _id << " from source " << _source.c_str(); - } + // // External textures cycle very quickly, so don't spam the log with messages about them. + // if (!_gpuObject.getUsage().isExternal()) { + // qCDebug(gpugl45logging) << "Destroying texture " << _id << " from source " << _source.c_str(); + // } // Remove this texture from the candidate list of derezzable textures if (_transferrable) {