Evas: Fix compilation for GLX

Sorry, I forgot to check that :)
This commit is contained in:
Jean-Philippe Andre 2016-01-05 18:46:21 +09:00
parent a706397381
commit 8884ce59b3
1 changed files with 6 additions and 6 deletions

View File

@ -2206,7 +2206,7 @@ _native_free_cb(void *data, void *image)
} }
else else
ERR("Try glXDestroyPixmap on GLX with no support"); ERR("Try glXDestroyPixmap on GLX with no support");
n->ns_data.x11->surface = 0; n->ns_data.x11.surface = 0;
} }
# endif # endif
#endif #endif
@ -2738,12 +2738,12 @@ eng_image_native_set(void *data, void *image, void *native)
pixmap_att[i++] = 0; pixmap_att[i++] = 0;
memcpy(&(n->ns), ns, sizeof(Evas_Native_Surface)); memcpy(&(n->ns), ns, sizeof(Evas_Native_Surface));
n->ns_data.x11->pixmap = pm; n->ns_data.x11.pixmap = pm;
n->ns_data.x11->visual = vis; n->ns_data.x11.visual = vis;
if (glsym_glXCreatePixmap) if (glsym_glXCreatePixmap)
n->ns_data.x11.surface = (void *)glsym_glXCreatePixmap(eng_get_ob(re)->disp, n->ns_data.x11.surface = (void *)glsym_glXCreatePixmap(eng_get_ob(re)->disp,
n->ns_data.x11->config, n->ns_data.x11.config,
n->ns_data.x11->pixmap, n->ns_data.x11.pixmap,
pixmap_att); pixmap_att);
else else
ERR("Try glXCreatePixmap on GLX with no support"); ERR("Try glXCreatePixmap on GLX with no support");
@ -2756,7 +2756,7 @@ eng_image_native_set(void *data, void *image, void *native)
ERR("no target :("); ERR("no target :(");
if (glsym_glXQueryDrawable) if (glsym_glXQueryDrawable)
glsym_glXQueryDrawable(eng_get_ob(re)->disp, glsym_glXQueryDrawable(eng_get_ob(re)->disp,
n->ns_data.x11->pixmap, n->ns_data.x11.pixmap,
GLX_TEXTURE_TARGET_EXT, GLX_TEXTURE_TARGET_EXT,
&target); &target);
} }