[addons] ScreenSaver&Visualization: Change the assignment of device property of SCR_P...
authorAnton Fedchin <afedchin@ruswizards.com>
Wed, 22 Apr 2015 15:24:59 +0000 (18:24 +0300)
committerAnton Fedchin <afedchin@ruswizards.com>
Sat, 4 Jul 2015 07:25:20 +0000 (10:25 +0300)
xbmc/addons/ScreenSaver.cpp
xbmc/addons/Visualisation.cpp

index 6f406d4..b97dc7b 100644 (file)
@@ -60,7 +60,7 @@ bool CScreenSaver::CreateScreenSaver()
 
   m_pInfo = new SCR_PROPS;
 #ifdef HAS_DX
-  m_pInfo->device     = g_Windowing.Get3DDevice();
+  m_pInfo->device     = g_Windowing.Get3D11Context();
 #else
   m_pInfo->device     = NULL;
 #endif
index f598ecc..7ac926e 100644 (file)
@@ -65,8 +65,8 @@ void CAudioBuffer::Set(const float* psBuffer, int iSize)
 bool CVisualisation::Create(int x, int y, int w, int h, void *device)
 {
   m_pInfo = new VIS_PROPS;
-  #ifdef HAS_DX
-  m_pInfo->device     = g_Windowing.Get3DDevice();
+#ifdef HAS_DX
+  m_pInfo->device     = g_Windowing.Get3D11Context();
 #else
   m_pInfo->device     = NULL;
 #endif