1 This is a patch downgraded from
2 https://src.fedoraproject.org/rpms/xorg-x11-server/raw/rawhide/f/0001-present-Check-for-NULL-to-prevent-crash.patch
3 to fix a crash in NVIDIA-495.46 (and later): https://gitlab.freedesktop.org/xorg/xserver/-/issues/1275
5 --- xorg-server-1.19.7/present/present.c.orig 2019-02-02 10:35:15.000000000 +0000
6 +++ xorg-server-1.19.7/present/present.c 2022-11-11 11:29:27.266755642 +0000
8 if (!screen_priv->info)
11 + if (!screen_priv->info->get_crtc)
14 return (*screen_priv->info->get_crtc)(window);
18 if (!screen_priv->info)
21 + if (!screen_priv->info->flush)
24 (*screen_priv->info->flush) (window);