render: add WLR_RENDER_NO_EXPLICIT_SYNC env var

This can be handy to figure out if a bug is due to explicit sync.
This commit is contained in:
Simon Ser 2024-08-04 16:23:53 +02:00
parent 738bbf01ee
commit 775817e278
2 changed files with 5 additions and 0 deletions

View file

@ -274,6 +274,9 @@ out:
if (own_drm_fd && drm_fd >= 0) {
close(drm_fd);
}
if (renderer != NULL && env_parse_bool("WLR_RENDER_NO_EXPLICIT_SYNC")) {
renderer->features.timeline = false;
}
return renderer;
}