Refactor application

This commit is contained in:
Victor Shcherb 2014-12-06 15:12:50 +01:00
parent 538cf0d66d
commit 49344c4a90

View file

@ -558,13 +558,15 @@ public class OsmandApplication extends Application {
if (!"qnx".equals(System.getProperty("os.name"))) {
if (osmandSettings.USE_OPENGL_RENDER.get()) {
boolean success = false;
if (!osmandSettings.OPENGL_RENDER_FAILED.get()) {
osmandSettings.OPENGL_RENDER_FAILED.set(true);
boolean success = NativeCoreContext.tryCatchInit(this);
success = NativeCoreContext.tryCatchInit(this);
if (success) {
osmandSettings.OPENGL_RENDER_FAILED.set(false);
}
} else {
}
if (!success) {
// try next time once again ?
osmandSettings.OPENGL_RENDER_FAILED.set(false);
warnings.add("Native OpenGL library is not supported. Please try again after exit");