Merge branch 'KDE/4.11'

Conflicts:
	kwin/egl_wayland_backend.cpp
	kwin/eglonxbackend.cpp
	kwin/glxbackend.cpp
	kwin/scene_opengl.cpp
	plasma/generic/wallpapers/color/plasma-wallpaper-color.desktop
	plasma/generic/wallpapers/image/plasma-wallpaper-image.desktop
This commit is contained in:
Martin Gräßlin 2014-01-28 08:18:41 +01:00
commit 5b07d4c2a1
4 changed files with 5 additions and 4 deletions

View file

@ -81,6 +81,7 @@ EglWaylandBackend::EglWaylandBackend()
EglWaylandBackend::~EglWaylandBackend()
{
cleanupGL();
checkGLError("Cleanup");
doneCurrent();
eglDestroyContext(m_display, m_context);
eglDestroySurface(m_display, m_surface);

View file

@ -51,6 +51,7 @@ EglOnXBackend::~EglOnXBackend()
m_overlayWindow->destroy();
}
cleanupGL();
checkGLError("Cleanup");
doneCurrent();
eglDestroyContext(dpy, ctx);
eglDestroySurface(dpy, surface);

View file

@ -61,6 +61,7 @@ GlxBackend::~GlxBackend()
// TODO: cleanup in error case
// do cleanup after initBuffer()
cleanupGL();
checkGLError("Cleanup");
doneCurrent();
if (ctx)
@ -73,7 +74,6 @@ GlxBackend::~GlxBackend()
XDestroyWindow(display(), window);
overlayWindow()->destroy();
checkGLError("Cleanup");
delete m_overlayWindow;
}

View file

@ -184,13 +184,12 @@ SceneOpenGL::SceneOpenGL(Workspace* ws, OpenGLBackend *backend)
SceneOpenGL::~SceneOpenGL()
{
// do cleanup after initBuffer()
SceneOpenGL::EffectFrame::cleanup();
if (init_ok) {
// backend might be still needed for a different scene
delete m_backend;
}
// do cleanup after initBuffer()
SceneOpenGL::EffectFrame::cleanup();
checkGLError("Cleanup");
}
SceneOpenGL *SceneOpenGL::createScene()