Skip to content

Commit

Permalink
Remove check for build version in USE_OPENGL_RENDER
Browse files Browse the repository at this point in the history
  • Loading branch information
Chumva committed Dec 5, 2024
1 parent 8b19c67 commit 10b1b54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions OsmAnd/src/net/osmand/plus/AppInitializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import android.content.Context;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.Build;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
Expand Down Expand Up @@ -630,7 +629,7 @@ private void initOpenGl() {
try {
settings.OPENGL_RENDER_FAILED.set(settings.OPENGL_RENDER_FAILED.get() + 1);
NativeCoreContext.init(app);
settings.USE_OPENGL_RENDER.setDefaultValue(Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && NativeCore.is64Bit());
settings.USE_OPENGL_RENDER.setDefaultValue(NativeCore.is64Bit());
settings.OPENGL_RENDER_FAILED.set(0);
} catch (Throwable throwable) {
LOG.error("NativeCoreContext", throwable);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3174,7 +3174,7 @@ public CommonPreference<Boolean> getCustomRoutingBooleanProperty(String attrName
public final CommonPreference<Integer> LOCATION_INTERPOLATION_PERCENT = new IntPreference(this, "location_interpolation_percent", 0).makeGlobal().makeShared();

public final CommonPreference<Boolean> USE_OPENGL_RENDER = new BooleanPreference(this, "use_opengl_render",
Build.VERSION.SDK_INT >= Build.VERSION_CODES.P).makeGlobal().makeShared().cache();
true).makeGlobal().makeShared().cache();

public final OsmandPreference<Integer> OPENGL_RENDER_FAILED = new IntPreference(this, "opengl_render_failed_count", 0).makeGlobal().cache();

Expand Down

0 comments on commit 10b1b54

Please sign in to comment.