summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/evas/engines/software_generic/Evas_Engine_Software_Generic.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/evas/engines/software_generic/Evas_Engine_Software_Generic.h b/src/modules/evas/engines/software_generic/Evas_Engine_Software_Generic.h
index b716b6b..59537c9 100644
--- a/src/modules/evas/engines/software_generic/Evas_Engine_Software_Generic.h
+++ b/src/modules/evas/engines/software_generic/Evas_Engine_Software_Generic.h
@@ -177,8 +177,11 @@ evas_render_engine_software_generic_update(Render_Engine_Software_Generic *re,
177 Outbuf *ob, 177 Outbuf *ob,
178 int w, int h) 178 int w, int h)
179{ 179{
180 if (re->ob) re->outbuf_free(re->ob); 180 if ((re->ob) && (re->ob != ob))
181 re->ob = ob; 181 {
182 re->outbuf_free(re->ob);
183 re->ob = ob;
184 }
182 185
183 evas_common_tilebuf_free(re->tb); 186 evas_common_tilebuf_free(re->tb);
184 re->tb = evas_common_tilebuf_new(w, h); 187 re->tb = evas_common_tilebuf_new(w, h);