Advertisement
Guest User

Untitled

a guest
Sep 18th, 2012
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. static void wait_vsync(void)
  2. {
  3.    // I guess we have to wait for flip to have taken place before another flip can be queued up.
  4.    if (waiting_for_flip)
  5.       wait_flip();
  6.  
  7.    queue_flip(); // Sets waiting_for_flip = true;
  8.  
  9.    if (!gbm_surface_has_free_buffers(g_gbm_surface)) // We have to wait for this flip to finish.
  10.       wait_flip();
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement