forked from enlightenment/efl
evas, ecore: fix crash when sdl doesn't init properly.
SVN revision: 73400
This commit is contained in:
parent
ed473fb3ca
commit
e468bdd391
|
@ -643,7 +643,7 @@ ecore_evas_gl_sdl_new(const char* name, int w, int h, int fullscreen, int nofram
|
||||||
if (!rmethod) return NULL;
|
if (!rmethod) return NULL;
|
||||||
|
|
||||||
ee = _ecore_evas_internal_sdl_new(rmethod, name, w, h, fullscreen, 0, noframe, 0);
|
ee = _ecore_evas_internal_sdl_new(rmethod, name, w, h, fullscreen, 0, noframe, 0);
|
||||||
ee->driver = "gl_sdl";
|
if (ee) ee->driver = "gl_sdl";
|
||||||
return ee;
|
return ee;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -63,6 +63,9 @@ eng_output_free(void *data)
|
||||||
Render_Engine *re;
|
Render_Engine *re;
|
||||||
|
|
||||||
re = (Render_Engine *)data;
|
re = (Render_Engine *)data;
|
||||||
|
|
||||||
|
if (re)
|
||||||
|
{
|
||||||
evas_gl_common_context_free(re->gl_context);
|
evas_gl_common_context_free(re->gl_context);
|
||||||
free(re);
|
free(re);
|
||||||
|
|
||||||
|
@ -71,6 +74,7 @@ eng_output_free(void *data)
|
||||||
|
|
||||||
SDL_QuitSubSystem(SDL_INIT_VIDEO);
|
SDL_QuitSubSystem(SDL_INIT_VIDEO);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
eng_output_resize(void *data, int w, int h)
|
eng_output_resize(void *data, int w, int h)
|
||||||
|
|
Loading…
Reference in New Issue