Load GLES effects instead of GL effects in GLES build
Just replacing the library name.
This commit is contained in:
parent
af27c83d0a
commit
1493dfd94f
1 changed files with 5 additions and 0 deletions
|
@ -1040,6 +1040,11 @@ unsigned long EffectsHandlerImpl::xrenderBufferPicture()
|
||||||
KLibrary* EffectsHandlerImpl::findEffectLibrary(KService* service)
|
KLibrary* EffectsHandlerImpl::findEffectLibrary(KService* service)
|
||||||
{
|
{
|
||||||
QString libname = service->library();
|
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);
|
KLibrary* library = new KLibrary(libname);
|
||||||
if (!library) {
|
if (!library) {
|
||||||
kError(1212) << "couldn't open library for effect '" <<
|
kError(1212) << "couldn't open library for effect '" <<
|
||||||
|
|
Loading…
Reference in a new issue