In an OpenGL application using EGL on X11 or Wayland, is there a way to wait for the next v-blank without swapping buffers?
I'm writing an OpenGL app and I only want to redraw when the content actually changes and I still want to have a way to run animations at the screen refresh rate even if I'm not drawing anything.