evas - evasgl ... make osmesa sw render support work again
This commit is contained in:
parent
3411fccc1e
commit
b676a97960
|
@ -920,6 +920,13 @@ eng_image_native_set(void *data EINA_UNUSED, void *image, void *native)
|
||||||
|
|
||||||
if (!im || !ns) return im;
|
if (!im || !ns) return im;
|
||||||
|
|
||||||
|
if ((ns->type == EVAS_NATIVE_SURFACE_OPENGL) &&
|
||||||
|
(ns->version == EVAS_NATIVE_SURFACE_VERSION))
|
||||||
|
im2 = evas_cache_image_data(evas_common_image_cache_get(),
|
||||||
|
im->w, im->h,
|
||||||
|
ns->data.x11.visual, 1,
|
||||||
|
EVAS_COLORSPACE_ARGB8888);
|
||||||
|
else
|
||||||
im2 = evas_cache_image_data(evas_common_image_cache_get(),
|
im2 = evas_cache_image_data(evas_common_image_cache_get(),
|
||||||
im->w, im->h,
|
im->w, im->h,
|
||||||
NULL, 1,
|
NULL, 1,
|
||||||
|
@ -2347,6 +2354,7 @@ eng_gl_surface_destroy(void *data EINA_UNUSED, void *surface)
|
||||||
|
|
||||||
if (!sfc) return 0;
|
if (!sfc) return 0;
|
||||||
|
|
||||||
|
printf("free buf %p\n", sfc->buffer);
|
||||||
if (sfc->buffer) free(sfc->buffer);
|
if (sfc->buffer) free(sfc->buffer);
|
||||||
|
|
||||||
free(sfc);
|
free(sfc);
|
||||||
|
|
Loading…
Reference in New Issue