dri2: restore Screen->ConfigNotify on close
ConfigNotify is set by DRI2ScreenInit, but not restored to previous state on close. Fix it. (I'm preparing a patch for xf86-video-nouveau which detects GPU lockup after dri2 init and it needs to reinitialize dri2) Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
9d568450b1
commit
b573cdd40e
|
@ -1185,6 +1185,7 @@ void
|
|||
DRI2CloseScreen(ScreenPtr pScreen)
|
||||
{
|
||||
DRI2ScreenPtr ds = DRI2GetScreen(pScreen);
|
||||
pScreen->ConfigNotify = ds->ConfigNotify;
|
||||
|
||||
free(ds->driverNames);
|
||||
free(ds);
|
||||
|
|
Loading…
Reference in New Issue
Block a user