#endif
if (g_elm_init)
{
+ OpenGl2ElmShutdown();
elm_shutdown();
}
- FREE_MEMORY(g_pstGld);
+
return;
}
if ( g_nOpenGl2FrameCount > MAX_FRAME_COUNT )
{
- OpenGl2ElmShutdown();
+ return;
}
}
if ( g_pOpenGl2EOWin == NULL )
{
FPRINTF("[Line : %d][%s] elm_win_util_standard_add failed to add a window object with standard setup\\n", __LINE__, API_NAMESPACE);
- OpenGl2ElmShutdown();
return 1;
}
elm_win_autodel_set(g_pOpenGl2EOWin, EINA_TRUE);
if ( pEOBX == NULL )
{
FPRINTF("[Line : %d][%s] elm_box_add failed to add box\\n", __LINE__, API_NAMESPACE);
- OpenGl2ElmShutdown();
return 1;
}
evas_object_size_hint_weight_set(pEOBX, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
if ( pEOGL == NULL )
{
FPRINTF("[Line : %d][%s] elm_glview_add failed to add glview\\n", __LINE__, API_NAMESPACE);
- OpenGl2ElmShutdown();
return 1;
}
g_pstGld->pGLApi = elm_glview_gl_api_get(pEOGL);
if ( g_pstGld->pGLApi == NULL )
{
FPRINTF("[Line : %d][%s] elm_glview_gl_api_get failed to get gl api\\n", __LINE__, API_NAMESPACE);
- OpenGl2ElmShutdown();
return 1;
}
if ( pEcoreAnim == NULL )
{
FPRINTF("[Line : %d][%s] ecore_animator_add failed to add animator\\n", __LINE__, API_NAMESPACE);
- OpenGl2ElmShutdown();
return 1;
}
evas_object_data_set(pEOGL, EVAS_OBJECT_DATA_KEY_02, pEcoreAnim);
g_eOpenGl2State == DEL_GL_FAILED ||
g_eOpenGl2State == ANIMATOR_DEL_FAILED )
{
- OpenGl2ElmShutdown();
return 1;
}
if ( g_pOpenGl2EOWin == NULL )
{
FPRINTF("[Line : %d][%s] elm_win_util_standard_add failed to add a window object with standard setup\\n", __LINE__, API_NAMESPACE);
- OpenGl2ElmShutdown();
return 1;
}
elm_win_autodel_set(g_pOpenGl2EOWin, EINA_TRUE);
if ( pEOBX == NULL )
{
FPRINTF("[Line : %d][%s] elm_box_add failed to add box\\n", __LINE__, API_NAMESPACE);
- OpenGl2ElmShutdown();
return 1;
}
evas_object_size_hint_weight_set(pEOBX, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
if ( pEOGL == NULL )
{
FPRINTF("[Line : %d][%s] elm_glview_version_add for EVAS_GL_GLES_1_X is failed to add glview\\n", __LINE__, API_NAMESPACE);
- OpenGl2ElmShutdown();
return 1;
}
}
if ( pEOGL == NULL )
{
FPRINTF("[Line : %d][%s] elm_glview_version_add for EVAS_GL_GLES_2_X is failed to add glview\\n", __LINE__, API_NAMESPACE);
- OpenGl2ElmShutdown();
return 1;
}
}
// Delete subobj as a resize object of window obj.
elm_win_resize_object_del(g_pOpenGl2EOWin, pEOBX);
- OpenGl2ElmShutdown();
-
return 0;
}