diff options
author | Anton Fedchin <anightik@gmail.com> | 2017-01-16 16:47:54 +0300 |
---|---|---|
committer | Anton Fedchin <afedchin@ruswizards.com> | 2017-01-26 22:35:29 +0300 |
commit | 402862f24eb91ce14099961473b410b883782847 (patch) | |
tree | 90fdaa5a98da5a2c278980be2845d38ad347724b | |
parent | 489e82ad086c683d8e814dc8401dd36887d629ab (diff) |
[RenderSystemDX] reload skin on a driver failure.
-rw-r--r-- | xbmc/rendering/dx/RenderSystemDX.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/rendering/dx/RenderSystemDX.cpp b/xbmc/rendering/dx/RenderSystemDX.cpp index bf072bd8d5..f83d21298d 100644 --- a/xbmc/rendering/dx/RenderSystemDX.cpp +++ b/xbmc/rendering/dx/RenderSystemDX.cpp @@ -29,6 +29,7 @@ #include "guilib/GUIShaderDX.h" #include "guilib/GUITextureD3D.h" #include "guilib/GUIWindowManager.h" +#include "messaging/ApplicationMessenger.h" #include "settings/AdvancedSettings.h" #include "threads/SingleLock.h" #include "utils/MathUtils.h" @@ -1291,6 +1292,8 @@ bool CRenderSystemDX::BeginRender() { OnDeviceLost(); OnDeviceReset(); + if (m_bRenderCreated) + KODI::MESSAGING::CApplicationMessenger::GetInstance().PostMsg(TMSG_EXECUTE_BUILT_IN, -1, -1, nullptr, "ReloadSkin"); } return false; } |