Add check if openGL lib is init
This commit is contained in:
parent
27a2beab33
commit
f83b76bbd9
1 changed files with 2 additions and 1 deletions
|
@ -60,6 +60,7 @@ import net.osmand.plus.render.MapRenderRepositories;
|
|||
import net.osmand.plus.render.NativeOsmandLibrary;
|
||||
import net.osmand.plus.resources.TransportIndexRepository;
|
||||
import net.osmand.plus.views.AddGpxPointBottomSheetHelper.NewGpxPoint;
|
||||
import net.osmand.plus.views.corenative.NativeCoreContext;
|
||||
import net.osmand.util.Algorithms;
|
||||
import net.osmand.util.MapUtils;
|
||||
|
||||
|
@ -597,7 +598,7 @@ public class ContextMenuLayer extends OsmandMapLayer {
|
|||
LatLon pointLatLon = tileBox.getLatLonFromPixel(point.x, point.y);
|
||||
OsmandApplication app = activity.getMyApplication();
|
||||
IContextMenuProvider poiMenuProvider = activity.getMapLayers().getPoiMapLayer();
|
||||
if (app.getSettings().USE_OPENGL_RENDER.get()) {
|
||||
if (app.getSettings().USE_OPENGL_RENDER.get() && NativeCoreContext.isInit()) {
|
||||
MapRendererView rendererView = view.getMapRenderer();
|
||||
if (rendererView != null) {
|
||||
int delta = 20;
|
||||
|
|
Loading…
Reference in a new issue