From 8426c1f9ba8baa95e984de03fa4ca1e66217e998 Mon Sep 17 00:00:00 2001 From: raster Date: Mon, 2 Jan 2012 03:30:23 +0000 Subject: [PATCH] make some more notes for partial swap (copy gabk to front) but still doesnt work.. just sits there and does nothing. wtf. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@66726 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/engines/gl_x11/evas_engine.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/modules/engines/gl_x11/evas_engine.c b/src/modules/engines/gl_x11/evas_engine.c index 2ffb936..25ad143 100644 --- a/src/modules/engines/gl_x11/evas_engine.c +++ b/src/modules/engines/gl_x11/evas_engine.c @@ -1390,7 +1390,7 @@ eng_output_flush(void *data) { re->info->callback.pre_swap(re->info->callback.data, re->evas); } -#if 1 +#if 0 if (1) #else if ((re->win->draw.x1 == 0) && (re->win->draw.y1 == 0) && (re->win->draw.x2 == (re->win->w - 1)) && (re->win->draw.y2 == (re->win->h - 1))) @@ -1420,16 +1420,14 @@ eng_output_flush(void *data) sh = (re->win->draw.y2 - re->win->draw.y1) + 1; sy = re->win->h - sy - sh; - glPixelZoom(1.0, 1.0); - glDisable(GL_BLEND); - glDisable(GL_SCISSOR_TEST); - glRasterPos2i(sx, re->win->h - sy); - glReadBuffer(GL_BACK); + glBitmap(0, 0, 0, 0, sx, re->win->h - sy, NULL); + glEnable(GL_SCISSOR_TEST); + glScissor(sx, sy, sw, sh); glDrawBuffer(GL_FRONT); glCopyPixels(sx, sy, sw, sh, GL_COLOR); glDrawBuffer(GL_BACK); - glReadBuffer(GL_BACK); - glRasterPos2i(0, 0); + glDisable(GL_SCISSOR_TEST); + glBitmap(0, 0, 0, 0, 0, 0, NULL); glFlush(); } if (re->info->callback.post_swap) -- 2.7.4