summaryrefslogtreecommitdiff
path: root/legacy/evas/src/modules/engines/gl_x11/evas_engine.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2010-01-25 13:42:57 +0000
committerCarsten Haitzler <raster@rasterman.com>2010-01-25 13:42:57 +0000
commit0948ee7e207f6cbf3fbc16fef00f1ece94bc6c29 (patch)
treec1158c8ac7cc902fd5ac950faa68716cd26279b2 /legacy/evas/src/modules/engines/gl_x11/evas_engine.c
parent5eadacbaf874fa89e2fd4ce945ae2fad94c9f9cc (diff)
1. depth buf+ stencil buf explicityl zero for both glx and egl.
2. some debugging - havving issues. will revert debug stuff soon SVN revision: 45550
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/modules/engines/gl_x11/evas_engine.c4
1 files changed, 4 insertions, 0 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 fb39614962..a1fd9b6d58 100644
--- a/legacy/evas/src/modules/engines/gl_x11/evas_engine.c
+++ b/legacy/evas/src/modules/engines/gl_x11/evas_engine.c
@@ -127,6 +127,7 @@ eng_setup(Evas *e, void *in)
127 re->info = info; 127 re->info = info;
128 re->evas = e; 128 re->evas = e;
129 e->engine.data.output = re; 129 e->engine.data.output = re;
130 printf("eng_window_new: %i %i\n", e->output.w, e->output.h);
130 re->win = eng_window_new(info->info.display, 131 re->win = eng_window_new(info->info.display,
131 info->info.drawable, 132 info->info.drawable,
132 0 /* FIXME: screen 0 assumption */, 133 0 /* FIXME: screen 0 assumption */,
@@ -206,6 +207,7 @@ eng_setup(Evas *e, void *in)
206 { 207 {
207 re = e->engine.data.output; 208 re = e->engine.data.output;
208 eng_window_free(re->win); 209 eng_window_free(re->win);
210 printf("resize eng_window_new: %i %i\n", e->output.w, e->output.h);
209 re->win = eng_window_new(info->info.display, 211 re->win = eng_window_new(info->info.display,
210 info->info.drawable, 212 info->info.drawable,
211 0,/* FIXME: screen 0 assumption */ 213 0,/* FIXME: screen 0 assumption */
@@ -397,6 +399,7 @@ eng_output_flush(void *data)
397 399
398#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX) 400#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
399// glFlush(); 401// glFlush();
402 printf("eglSwapBuffers(%p, %p)\n", re->win->egl_disp, re->win->egl_surface[0]);
400 eglSwapBuffers(re->win->egl_disp, re->win->egl_surface[0]); 403 eglSwapBuffers(re->win->egl_disp, re->win->egl_surface[0]);
401#else 404#else
402# ifdef VSYNC_TO_SCREEN 405# ifdef VSYNC_TO_SCREEN
@@ -1582,6 +1585,7 @@ eng_image_draw(void *data, void *context, void *surface, void *image, int src_x,
1582 eng_window_use(re->win); 1585 eng_window_use(re->win);
1583 evas_gl_common_context_target_surface_set(re->win->gl_context, surface); 1586 evas_gl_common_context_target_surface_set(re->win->gl_context, surface);
1584 re->win->gl_context->dc = context; 1587 re->win->gl_context->dc = context;
1588 printf("draw img %p: %i %i, %ix%i\n", image, dst_x, dst_y, dst_w, dst_h);
1585 evas_gl_common_image_draw(re->win->gl_context, image, 1589 evas_gl_common_image_draw(re->win->gl_context, image,
1586 src_x, src_y, src_w, src_h, 1590 src_x, src_y, src_w, src_h,
1587 dst_x, dst_y, dst_w, dst_h, 1591 dst_x, dst_y, dst_w, dst_h,