mirror of https://github.com/hyprwm/Hyprland
fix crasheroni
This commit is contained in:
parent
c9fdf622b6
commit
ab428222c2
|
@ -112,7 +112,7 @@ static void renderSurface(SP<CWLSurfaceResource> surface, int x, int y, void* da
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// explicit sync: wait for the timeline, if any
|
// explicit sync: wait for the timeline, if any
|
||||||
if (surface->syncobj) {
|
if (surface->syncobj && surface->syncobj->acquireTimeline) {
|
||||||
int fd = surface->syncobj->acquireTimeline->timeline->exportAsSyncFileFD(surface->syncobj->acquirePoint);
|
int fd = surface->syncobj->acquireTimeline->timeline->exportAsSyncFileFD(surface->syncobj->acquirePoint);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
Debug::log(ERR, "Renderer: failed to get a fd from explicit timeline");
|
Debug::log(ERR, "Renderer: failed to get a fd from explicit timeline");
|
||||||
|
|
Loading…
Reference in New Issue