mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
2b456da531
Make sure `layer_commit` passes on complete frames in `comp_gl_client.c` even when EGL_ANDROID_native_fence_sync is not available. The `insert_fence` function defined in `comp_egl_client.c` and passed as argument to `comp_egl_client::client_gl_compositor_init` is only setting up a proper fence when EGL_ANDROID_native_fence_sync is available, resulting in a no-op otherwise. However the fact that the insert_fence function is still valid results in the `glFlush` workaround from `comp_gl_client::client_gl_compositor_layer_commit` not kicking in. To fix this define a NULL `insert_fence` function when EGL_ANDROID_native_fence_sync is not available, and while at it turn the `glFlush` workaround into a `glFinish` for extra safety. This ensures that frames are always complete after `client_gl_compositor_layer_commit` has been called. |
||
---|---|---|
.. | ||
external | ||
xrt | ||
CMakeLists.txt | ||
meson.build |