Skip to content

backends/native: Prevent crash on resume

Ray Strode requested to merge maybe-fix-resume-crash into main

When first resuming from a suspend, the renderer views may not yet have realized cursor stage views.

That can lead to a crash as the monitors light up and force a cursor update leading to invalidation of an unallocated cursor stage view.

This commit avoids the crash by doing a NULL check.

Closes: #3012 (closed)

Merge request reports

Loading