mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
kodi (Samsung): CreatePlatformDisplay with cast
Co-authored-by: Christian Hewitt <christianshewitt@gmail.com>
This commit is contained in:
parent
c4033f130e
commit
832b3764fd
@ -4,9 +4,32 @@ Date: Mon, 6 Jul 2020 06:56:46 +0000
|
|||||||
Subject: [PATCH] use EGL_KHR_platform_gbm not EGL_MESA_platform_gbm
|
Subject: [PATCH] use EGL_KHR_platform_gbm not EGL_MESA_platform_gbm
|
||||||
|
|
||||||
---
|
---
|
||||||
|
xbmc/windowing/gbm/WinSystemGbmEGLContext.cpp | 2 ++--
|
||||||
xbmc/windowing/gbm/WinSystemGbmGLESContext.cpp | 2 +-
|
xbmc/windowing/gbm/WinSystemGbmGLESContext.cpp | 2 +-
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
2 file changed, 3 insertion(+), 3 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/xbmc/windowing/gbm/WinSystemGbmEGLContext.cpp b/xbmc/windowing/gbm/WinSystemGbmEGLContext.cpp
|
||||||
|
index d8d775dcad..21efc02d34 100644
|
||||||
|
--- a/xbmc/windowing/gbm/WinSystemGbmEGLContext.cpp
|
||||||
|
+++ b/xbmc/windowing/gbm/WinSystemGbmEGLContext.cpp
|
||||||
|
@@ -23,7 +23,7 @@ bool CWinSystemGbmEGLContext::InitWindowSystemEGL(EGLint renderableType, EGLint
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (!m_eglContext.CreatePlatformDisplay(m_GBM->GetDevice()->Get(), m_GBM->GetDevice()->Get()))
|
||||||
|
+ if (!m_eglContext.CreatePlatformDisplay(m_GBM->GetDevice()->Get(), reinterpret_cast<EGLNativeDisplayType>(m_GBM->GetDevice()->Get())))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
@@ -87,7 +87,7 @@
|
||||||
|
|
||||||
|
if (!m_eglContext.CreatePlatformSurface(
|
||||||
|
m_GBM->GetDevice()->GetSurface()->Get(),
|
||||||
|
- reinterpret_cast<khronos_uintptr_t>(m_GBM->GetDevice()->GetSurface()->Get())))
|
||||||
|
+ reinterpret_cast<EGLNativeWindowType>(m_GBM->GetDevice()->GetSurface()->Get())))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
diff --git a/xbmc/windowing/gbm/WinSystemGbmGLESContext.cpp b/xbmc/windowing/gbm/WinSystemGbmGLESContext.cpp
|
diff --git a/xbmc/windowing/gbm/WinSystemGbmGLESContext.cpp b/xbmc/windowing/gbm/WinSystemGbmGLESContext.cpp
|
||||||
index cf293900ca..5b96ebaf21 100644
|
index cf293900ca..5b96ebaf21 100644
|
||||||
--- a/xbmc/windowing/gbm/WinSystemGbmGLESContext.cpp
|
--- a/xbmc/windowing/gbm/WinSystemGbmGLESContext.cpp
|
||||||
@ -22,4 +45,3 @@ index cf293900ca..5b96ebaf21 100644
|
|||||||
std::unique_ptr<CWinSystemBase> CWinSystemBase::CreateWinSystem()
|
std::unique_ptr<CWinSystemBase> CWinSystemBase::CreateWinSystem()
|
||||||
--
|
--
|
||||||
2.17.1
|
2.17.1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user