Use KWin Options to read texture scale settings
No need to re-read the config. REVIEW: 104298
This commit is contained in:
parent
2f6784be57
commit
a5d620a6c2
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue