summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Gräßlin <mgraesslin@kde.org>2012-10-06 11:44:12 (GMT)
committerMartin Gräßlin <mgraesslin@kde.org>2012-10-06 11:44:12 (GMT)
commit2c1c858de6c58f7561517fe30a78c1e1c7fcec21 (patch)
treeeafe1baa736b6ad00e0537bc537e3e21fb919158
parent5e9896980c1a78602cda9ecc0aeb1836b79105fa (diff)
Fix build error when GLES is not available
Note to me: always rebuild with all possible build options if something is changed. Sorry for the inconvenience and thanks to the early report of the issue. BUG: 307866 FIXED-IN: 4.10
-rw-r--r--kwin/libkwineffects/kwinglutils_funcs.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/kwin/libkwineffects/kwinglutils_funcs.h b/kwin/libkwineffects/kwinglutils_funcs.h
index 675088b..968fb49 100644
--- a/kwin/libkwineffects/kwinglutils_funcs.h
+++ b/kwin/libkwineffects/kwinglutils_funcs.h
@@ -27,6 +27,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define KWIN_EXPORT KDE_EXPORT
+// common functionality
+namespace KWin {
+
+void KWIN_EXPORT glResolveFunctions(OpenGLPlatformInterface platformInterface);
+
+}
+
#ifndef KWIN_HAVE_OPENGLES
#include <GL/gl.h>
@@ -75,7 +82,6 @@ namespace KWin
{
void KWIN_EXPORT glxResolveFunctions();
-void KWIN_EXPORT glResolveFunctions();
// Defines
@@ -357,7 +363,6 @@ namespace KWin
{
void KWIN_EXPORT eglResolveFunctions();
-void KWIN_EXPORT glResolveFunctions(OpenGLPlatformInterface platformInterface);
// EGL
typedef EGLImageKHR(*eglCreateImageKHR_func)(EGLDisplay, EGLContext, EGLenum, EGLClientBuffer, const EGLint*);
typedef EGLBoolean(*eglDestroyImageKHR_func)(EGLDisplay, EGLImageKHR);