forked from enlightenment/efl
gl_drm: NULL check img
If we set native surface on a new object we can get here with NULL engine_info from the caller. We should still create a native surface.
This commit is contained in:
parent
855c1886b6
commit
c9ac2338d4
|
@ -1219,7 +1219,7 @@ eng_image_native_set(void *engine, void *image, void *native)
|
|||
|
||||
evas_outbuf_use(ob);
|
||||
|
||||
if (img->native.data)
|
||||
if (img && img->native.data)
|
||||
{
|
||||
if (img->native.func.free)
|
||||
img->native.func.free(img);
|
||||
|
|
Loading…
Reference in New Issue