Browse files

X11: fix crash after a resolution change on startup

  • Loading branch information...
1 parent 76856d5 commit e1298b163a8243b475f74e9443dc6559cad890eb @FernetMenta committed Jul 26, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 xbmc/windowing/X11/WinSystemX11.cpp
View
3 xbmc/windowing/X11/WinSystemX11.cpp
@@ -219,7 +219,8 @@ bool CWinSystemX11::SetFullScreen(bool fullScreen, RESOLUTION_INFO& res, bool bl
OnLostDevice();
m_bIsInternalXrr = true;
g_xrandr.SetMode(out, mode);
- return true;
+ if (m_glWindow)
+ return true;
}
#endif

0 comments on commit e1298b1

Please sign in to comment.