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:
Chris Michael 2014-07-08 12:32:58 -04:00
parent 3d1f009a58
commit d929151458
1 changed files with 1 additions and 1 deletions

View File

@ -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);