From 6f8da91cf4af4057ae4d2b9a2e2cd654e54d2d2c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 26 Aug 2013 01:12:32 +0300 Subject: disable map reduce in SDL2. --- src/gui/setup_perfomance.cpp | 2 ++ src/map.cpp | 4 ++++ 2 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/gui/setup_perfomance.cpp b/src/gui/setup_perfomance.cpp index eecfe95fc..17dec597e 100644 --- a/src/gui/setup_perfomance.cpp +++ b/src/gui/setup_perfomance.cpp @@ -81,9 +81,11 @@ Setup_Perfomance::Setup_Perfomance(const Widget2 *const widget) : new SetupItemCheckBox(_("Enable opacity cache (Software, can " "use much memory)"), "", "alphaCache", this, "alphaCacheEvent"); +#ifndef USE_SDL2 // TRANSLATORS: settings option new SetupItemCheckBox(_("Enable map reduce (Software)"), "", "enableMapReduce", this, "enableMapReduceEvent"); +#endif // TRANSLATORS: settings option new SetupItemCheckBox(_("Enable compound sprite delay (Software)"), "", diff --git a/src/map.cpp b/src/map.cpp index 7b83e9c7b..011a19319 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1439,11 +1439,15 @@ void Map::clearIndexedTilesets() void Map::reduce() { +#ifdef USE_SDL2 + return; +#else if (!mFringeLayer || mOpenGL > 0 || !config.getBoolValue("enableMapReduce")) { return; } +#endif int cnt = 0; for (int x = 0; x < mWidth; x ++) -- cgit v1.2.3-60-g2f50