evas - software generic - fix crash

Commit fcef8d8392
breaks any evas engine that frees/NULLs its own outbuf before
calling evas_render_engine_software_generic_update()

We should unconditionally set the outbuf, we only need to
do the free conditionally.
This commit is contained in:
Derek Foreman 2016-12-07 10:10:42 -06:00
parent 5424cdbd81
commit eafb05c58a
1 changed files with 2 additions and 5 deletions

View File

@ -177,11 +177,8 @@ evas_render_engine_software_generic_update(Render_Engine_Software_Generic *re,
Outbuf *ob,
int w, int h)
{
if ((re->ob) && (re->ob != ob))
{
re->outbuf_free(re->ob);
re->ob = ob;
}
if ((re->ob) && (re->ob != ob)) re->outbuf_free(re->ob);
re->ob = ob;
evas_common_tilebuf_free(re->tb);
re->tb = evas_common_tilebuf_new(w, h);