forked from enlightenment/efl
evas-software-generic: Check for render engine function before calling
In most engines which inherit from software_generic, they do not implement the outbuf_free_region_for_update function. Most engines have it as an unused function. If we simply add a check here, then we can reduce the need for having useless function in multiple engines. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
68b366c831
commit
6016ce8133
|
@ -4260,6 +4260,7 @@ eng_output_redraws_next_update_push(void *engine EINA_UNUSED, void *data, void *
|
||||||
evas_common_pipe_map_begin(surface);
|
evas_common_pipe_map_begin(surface);
|
||||||
#endif /* BUILD_PIPE_RENDER */
|
#endif /* BUILD_PIPE_RENDER */
|
||||||
re->outbuf_push_updated_region(re->ob, surface, x, y, w, h);
|
re->outbuf_push_updated_region(re->ob, surface, x, y, w, h);
|
||||||
|
if (re->outbuf_free_region_for_update)
|
||||||
re->outbuf_free_region_for_update(re->ob, surface);
|
re->outbuf_free_region_for_update(re->ob, surface);
|
||||||
evas_common_cpu_end_opt();
|
evas_common_cpu_end_opt();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue