Fix: egl mode in engine forgot to call pre/post swap callback. thanks

guanglim!



SVN revision: 59322
This commit is contained in:
Carsten Haitzler 2011-05-11 09:14:59 +00:00
parent faba2810b4
commit a5d62bdbcd
1 changed files with 8 additions and 0 deletions

View File

@ -698,8 +698,16 @@ eng_output_flush(void *data)
else eglSwapInterval(re->win->egl_disp, 0);
re->vsync = 1;
}
if (re->info->callback.pre_swap)
{
re->info->callback.pre_swap(re->info->callback.data, re->evas);
}
eglSwapBuffers(re->win->egl_disp, re->win->egl_surface[0]);
if (!safe_native) eglWaitGL();
if (re->info->callback.post_swap)
{
re->info->callback.post_swap(re->info->callback.data, re->evas);
}
#ifdef FRAMECOUNT
double t1 = get_time();
printf("%1.5f\n", t1 - t0);