fix crasheroni

This commit is contained in:
Vaxry 2024-07-06 19:28:57 +02:00
parent bc002b9a2e
commit 72c8898300

View File

@ -112,7 +112,7 @@ static void renderSurface(SP<CWLSurfaceResource> surface, int x, int y, void* da
return;
// 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);
if (fd < 0) {
Debug::log(ERR, "Renderer: failed to get a fd from explicit timeline");