make some more notes for partial swap (copy gabk to front) but still

doesnt work.. just sits there and does nothing. wtf.



SVN revision: 66726
This commit is contained in:
Carsten Haitzler 2012-01-02 03:30:23 +00:00
parent 4273f5846c
commit 8e4391d38b
1 changed files with 6 additions and 8 deletions

View File

@ -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)