forked from enlightenment/efl
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:
parent
4273f5846c
commit
8e4391d38b
|
@ -1390,7 +1390,7 @@ eng_output_flush(void *data)
|
||||||
{
|
{
|
||||||
re->info->callback.pre_swap(re->info->callback.data, re->evas);
|
re->info->callback.pre_swap(re->info->callback.data, re->evas);
|
||||||
}
|
}
|
||||||
#if 1
|
#if 0
|
||||||
if (1)
|
if (1)
|
||||||
#else
|
#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)))
|
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;
|
sh = (re->win->draw.y2 - re->win->draw.y1) + 1;
|
||||||
sy = re->win->h - sy - sh;
|
sy = re->win->h - sy - sh;
|
||||||
|
|
||||||
glPixelZoom(1.0, 1.0);
|
glBitmap(0, 0, 0, 0, sx, re->win->h - sy, NULL);
|
||||||
glDisable(GL_BLEND);
|
glEnable(GL_SCISSOR_TEST);
|
||||||
glDisable(GL_SCISSOR_TEST);
|
glScissor(sx, sy, sw, sh);
|
||||||
glRasterPos2i(sx, re->win->h - sy);
|
|
||||||
glReadBuffer(GL_BACK);
|
|
||||||
glDrawBuffer(GL_FRONT);
|
glDrawBuffer(GL_FRONT);
|
||||||
glCopyPixels(sx, sy, sw, sh, GL_COLOR);
|
glCopyPixels(sx, sy, sw, sh, GL_COLOR);
|
||||||
glDrawBuffer(GL_BACK);
|
glDrawBuffer(GL_BACK);
|
||||||
glReadBuffer(GL_BACK);
|
glDisable(GL_SCISSOR_TEST);
|
||||||
glRasterPos2i(0, 0);
|
glBitmap(0, 0, 0, 0, 0, 0, NULL);
|
||||||
glFlush();
|
glFlush();
|
||||||
}
|
}
|
||||||
if (re->info->callback.post_swap)
|
if (re->info->callback.post_swap)
|
||||||
|
|
Loading…
Reference in New Issue