Paste P282

Debug outputs
ActivePublic

Authored by zzag on Dec 19 2018, 12:48 PM.
From 4c3bff15cdcb832d852c4c338326cb070db05f0f Mon Sep 17 00:00:00 2001
From: Vlad Zagorodniy <vladzzag@gmail.com>
Date: Wed, 19 Dec 2018 14:47:54 +0200
Subject: [PATCH] Add debug outputs
---
effects.cpp | 5 +++++
effects/blur/blur.cpp | 6 ++++++
2 files changed, 11 insertions(+)
diff --git a/effects.cpp b/effects.cpp
index 3476d6d8c..c2c0aa00f 100644
--- a/effects.cpp
+++ b/effects.cpp
@@ -61,6 +61,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "decorations/decorationbridge.h"
#include <KDecoration2/DecorationSettings>
+#include <epoxy/glx.h>
+
namespace KWin
{
//---------------------
@@ -273,7 +275,10 @@ EffectsHandlerImpl::~EffectsHandlerImpl()
void EffectsHandlerImpl::unloadAllEffects()
{
+ qDebug() << "About to unload all effects";
+ qDebug() << "Current context:" << glXGetCurrentContext();
makeOpenGLContextCurrent();
+ qDebug() << "Current context:" << glXGetCurrentContext();
if (keyboard_grab_effect != NULL)
ungrabKeyboard();
setActiveFullScreenEffect(nullptr);
diff --git a/effects/blur/blur.cpp b/effects/blur/blur.cpp
index be4d4fa20..9b86b7d66 100644
--- a/effects/blur/blur.cpp
+++ b/effects/blur/blur.cpp
@@ -38,6 +38,8 @@
#include <KSharedConfig>
#include <KConfigGroup>
+#include <epoxy/glx.h>
+
namespace KWin
{
@@ -83,6 +85,10 @@ BlurEffect::BlurEffect()
BlurEffect::~BlurEffect()
{
+ qDebug() << "About to destroy the blur effect";
+ qDebug() << "Current context:" << glXGetCurrentContext();
+ effects->makeOpenGLContextCurrent();
+ qDebug() << "Current context:" << glXGetCurrentContext();
deleteFBOs();
}
--
2.20.1
zzag created this paste.Dec 19 2018, 12:48 PM
zzag created this object in space S1 KDE Community.