From f76c18bfb8eea86ecddd703a6e1ee577b1ba2876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 17 Aug 2015 11:40:01 +0200 Subject: [PATCH] Add SceneOpenGL::backend() const -> OpenGLBackend* A way to get to the actual backend used by the compositing scene. --- scene_opengl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene_opengl.h b/scene_opengl.h index 44a1e8932a..5a697bdfdc 100644 --- a/scene_opengl.h +++ b/scene_opengl.h @@ -77,6 +77,10 @@ public: **/ Texture *createTexture(); + OpenGLBackend *backend() const { + return m_backend; + } + #ifndef KWIN_HAVE_OPENGLES /** * Copy a region of pixels from the current read to the current draw buffer