Use KWin Options to read texture scale settings

No need to re-read the config.
REVIEW: 104298
This commit is contained in:
Martin Gräßlin 2012-03-16 08:43:52 +01:00
parent 2f6784be57
commit a5d620a6c2

View file

@ -21,6 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "lanczosfilter.h"
#include "effects.h"
#include "options.h"
#include <kwinglutils.h>
#include <kwinglplatform.h>
@ -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