summaryrefslogtreecommitdiff
path: root/legacy/evas
diff options
context:
space:
mode:
authorSung Park <sungwoo@gmail.com>2012-10-15 08:40:53 +0000
committerSung Park <sungwoo@gmail.com>2012-10-15 08:40:53 +0000
commitecfe3ecd6999e2ff328a0315cf9a2279b48c6b3d (patch)
treed2b083a9f32f2eab9c5366dab515a9dba8b48e9a /legacy/evas
parente1ada6ad4de9697034dd478dbe987f17aafdb51d (diff)
EvasGL: check if the image obj is a native_set'ed
image object for evas_gl direct rendering. SVN revision: 77989
Diffstat (limited to 'legacy/evas')
-rw-r--r--legacy/evas/src/modules/engines/gl_x11/evas_engine.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/legacy/evas/src/modules/engines/gl_x11/evas_engine.c b/legacy/evas/src/modules/engines/gl_x11/evas_engine.c
index 91267964c6..78b41dc014 100644
--- a/legacy/evas/src/modules/engines/gl_x11/evas_engine.c
+++ b/legacy/evas/src/modules/engines/gl_x11/evas_engine.c
@@ -2429,9 +2429,11 @@ eng_image_draw(void *data, void *context, void *surface, void *image, int src_x,
2429{ 2429{
2430 Render_Engine *re; 2430 Render_Engine *re;
2431 re = (Render_Engine *)data; 2431 re = (Render_Engine *)data;
2432 if (!image) return; 2432 Evas_GL_Image *im = image;
2433
2434 if (!im) return;
2433 2435
2434 if (evgl_direct_enabled(re->evgl_engine)) 2436 if ((im->native.data) && evgl_direct_enabled(re->evgl_engine))
2435 { 2437 {
2436 DBG("Rendering Directly to the window"); 2438 DBG("Rendering Directly to the window");
2437 //evas_object_image_pixels_dirty_set(evgl_direct_img_obj_get(re->evgl_engine), EINA_TRUE); 2439 //evas_object_image_pixels_dirty_set(evgl_direct_img_obj_get(re->evgl_engine), EINA_TRUE);