From 1493dfd94f9f3f1ec8e569ee9dfaf4f5a2df3c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 17 Jul 2011 19:46:16 +0200 Subject: [PATCH] Load GLES effects instead of GL effects in GLES build Just replacing the library name. --- effects.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/effects.cpp b/effects.cpp index 143b033b9f..45233136f8 100644 --- a/effects.cpp +++ b/effects.cpp @@ -1040,6 +1040,11 @@ unsigned long EffectsHandlerImpl::xrenderBufferPicture() KLibrary* EffectsHandlerImpl::findEffectLibrary(KService* service) { QString libname = service->library(); +#ifdef KWIN_HAVE_OPENGLES + if (libname.startsWith("kwin4_effect_")) { + libname.replace("kwin4_effect_", "kwin4_effect_gles_"); + } +#endif KLibrary* library = new KLibrary(libname); if (!library) { kError(1212) << "couldn't open library for effect '" <<