summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/software_generic/evas_engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/evas/engines/software_generic/evas_engine.c')
-rw-r--r--src/modules/evas/engines/software_generic/evas_engine.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/modules/evas/engines/software_generic/evas_engine.c b/src/modules/evas/engines/software_generic/evas_engine.c
index 4eaa9a4..721c4ee 100644
--- a/src/modules/evas/engines/software_generic/evas_engine.c
+++ b/src/modules/evas/engines/software_generic/evas_engine.c
@@ -1096,12 +1096,15 @@ eng_image_native_set(void *data EINA_UNUSED, void *image, void *native)
1096 1096
1097 if (!im || !ns) return im; 1097 if (!im || !ns) return im;
1098 1098
1099 if ((ns->type == EVAS_NATIVE_SURFACE_OPENGL) && 1099 if ((ns->type == EVAS_NATIVE_SURFACE_EVASGL) &&
1100 (ns->version == EVAS_NATIVE_SURFACE_VERSION)) 1100 (ns->version == EVAS_NATIVE_SURFACE_VERSION))
1101 im2 = evas_cache_image_data(evas_common_image_cache_get(), 1101 {
1102 im->w, im->h, 1102
1103 ns->data.x11.visual, 1, 1103 im2 = evas_cache_image_data(evas_common_image_cache_get(),
1104 EVAS_COLORSPACE_ARGB8888); 1104 im->w, im->h,
1105 ns->data.evasgl.surface, 1,
1106 EVAS_COLORSPACE_ARGB8888);
1107 }
1105 else 1108 else
1106 im2 = evas_cache_image_data(evas_common_image_cache_get(), 1109 im2 = evas_cache_image_data(evas_common_image_cache_get(),
1107 im->w, im->h, 1110 im->w, im->h,
@@ -3178,9 +3181,9 @@ eng_gl_native_surface_get(void *data EINA_UNUSED, void *surface, void *native_su
3178 3181
3179 if (!sfc) return 0; 3182 if (!sfc) return 0;
3180 3183
3181 ns->type = EVAS_NATIVE_SURFACE_OPENGL; 3184 ns->type = EVAS_NATIVE_SURFACE_EVASGL;
3182 ns->version = EVAS_NATIVE_SURFACE_VERSION; 3185 ns->version = EVAS_NATIVE_SURFACE_VERSION;
3183 ns->data.x11.visual = sfc->buffer; 3186 ns->data.evasgl.surface = sfc->buffer;
3184 3187
3185 return 1; 3188 return 1;
3186#else 3189#else