Browse files

[KMS] Correctly restore crtc on exit.

  • Loading branch information...
1 parent 9105533 commit 51c05ea1a5ba2e9e315f09db925d6cf83babbd48 @thefiddler thefiddler committed Jul 18, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/OpenTK/Platform/Linux/LinuxGraphicsContext.cs
View
4 Source/OpenTK/Platform/Linux/LinuxGraphicsContext.cs
@@ -286,8 +286,8 @@ protected override void Dispose(bool manual)
Drm.ModeSetCrtc(fd,
wnd.DisplayDevice.pCrtc->crtc_id,
wnd.DisplayDevice.pCrtc->buffer_id,
- wnd.DisplayDevice.pCrtc->width,
- wnd.DisplayDevice.pCrtc->height,
+ wnd.DisplayDevice.pCrtc->x,
+ wnd.DisplayDevice.pCrtc->y,
&connector_id,
1,
&mode);

0 comments on commit 51c05ea

Please sign in to comment.