forked from enlightenment/efl
do not access NULL image data for native surfaces.
This fixes another segv that happens when using composite manager. SVN revision: 46265
This commit is contained in:
parent
1ad4337878
commit
5777eee064
|
@ -1249,6 +1249,7 @@ eng_image_native_set(void *data, void *image, void *native)
|
|||
Visual *vis = NULL;
|
||||
Pixmap pm = 0;
|
||||
|
||||
if (!im) return;
|
||||
if (ns)
|
||||
{
|
||||
vis = ns->data.x11.visual;
|
||||
|
@ -1263,7 +1264,6 @@ eng_image_native_set(void *data, void *image, void *native)
|
|||
}
|
||||
}
|
||||
if ((!ns) && (!im->native.data)) return;
|
||||
if (!im) return;
|
||||
#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
|
||||
if (im->native.data)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue