Check for nullptr connector in drm_prepare
Fixes gamescope sometimes segfaulting for me.
This commit is contained in:
parent
8a3fa88c7d
commit
b1254d5340
1 changed files with 4 additions and 0 deletions
|
@ -1751,6 +1751,10 @@ drm_prepare_liftoff( struct drm_t *drm, const struct FrameInfo_t *frameInfo, boo
|
|||
* negative errno on failure or if the scene-graph can't be presented directly. */
|
||||
int drm_prepare( struct drm_t *drm, bool async, const struct FrameInfo_t *frameInfo )
|
||||
{
|
||||
if (!(drm->connector)){
|
||||
return -EACCES;
|
||||
}
|
||||
|
||||
drm->pending.screen_type = drm_get_screen_type(drm);
|
||||
|
||||
drm_update_gamma_lut(drm);
|
||||
|
|
Loading…
Reference in a new issue