Load GLES effects instead of GL effects in GLES build

Just replacing the library name.
icc-effect-5.14.5
Martin Gräßlin 2011-07-17 19:46:16 +02:00
parent af27c83d0a
commit 1493dfd94f
1 changed files with 5 additions and 0 deletions

View File

@ -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 '" <<