forked from enlightenment/efl
evas-engine-drm: Fix invalid variable check
We need to check if evas_outbuf_setup Failed and did not return a new ob for us to work with...so this if check was invalid @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
3d1f009a58
commit
d929151458
|
@ -139,7 +139,7 @@ eng_setup(Evas *evas, void *einfo)
|
|||
|
||||
/* try to create a new outbuf */
|
||||
ob = evas_outbuf_setup(info, epd->output.w, epd->output.h);
|
||||
if (ob) return 0;
|
||||
if (!ob) return 0;
|
||||
|
||||
/* if we have an existing outbuf, free it */
|
||||
evas_render_engine_software_generic_update(&re->generic, ob, epd->output.w, epd->output.h);
|
||||
|
|
Loading…
Reference in New Issue