evas: follow API documentation more closely.

This commit is contained in:
Cedric BAIL 2015-10-13 11:45:52 -07:00
parent d8eae4d4e5
commit 0d6c53268d
1 changed files with 4 additions and 3 deletions

View File

@ -1155,9 +1155,10 @@ eng_image_native_set(void *data, void *image, void *native)
attribs[2] = EGL_NONE;
memcpy(&(n->ns), ns, sizeof(Evas_Native_Surface));
glsym_eglQueryWaylandBufferWL(ob->egl.disp, wl_buf,
EGL_WAYLAND_Y_INVERTED_WL,
&yinvert);
if (glsym_eglQueryWaylandBufferWL(ob->egl.disp, wl_buf,
EGL_WAYLAND_Y_INVERTED_WL,
&yinvert) == EGL_FALSE)
yinvert = 1;
eina_hash_add(ob->gl_context->shared->native_wl_hash,
&wlid, img);