dont sync if vsync not set...? (good?)

SVN revision: 50735
This commit is contained in:
Carsten Haitzler 2010-08-02 06:44:23 +00:00
parent 6e1ada9850
commit 50649552e3
1 changed files with 5 additions and 1 deletions

View File

@ -582,6 +582,10 @@ eng_output_flush(void *data)
#ifdef FRAMECOUNT
double t0 = get_time();
#endif
if (re->info->vsync)
eglSwapInterval(re->win->egl_disp, 1);
else
eglSwapInterval(re->win->egl_disp, 0);
eglSwapBuffers(re->win->egl_disp, re->win->egl_surface[0]);
#ifdef FRAMECOUNT
double t1 = get_time();