diff --git a/lanczosfilter.cpp b/lanczosfilter.cpp
index accd93fbb8..010acc2ae5 100644
--- a/lanczosfilter.cpp
+++ b/lanczosfilter.cpp
@@ -21,6 +21,7 @@ along with this program. If not, see .
#include "lanczosfilter.h"
#include "effects.h"
+#include "options.h"
#include
#include
@@ -59,9 +60,7 @@ void LanczosFilter::init()
kWarning(1212) << "Lanczos Filter forced on by environment variable";
}
- KSharedConfigPtr config = KSharedConfig::openConfig("kwinrc");
-
- if (!force && config->group("Compositing").readEntry("GLTextureFilter", 2) != 2)
+ if (!force && options->glSmoothScale() != 2)
return; // disabled by config
// The lanczos filter is reported to be broken with the Intel driver and Mesa 7.10