mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-15 13:52:28 +00:00
Revert "Don't attempt to use direct rendering without DRM master"
We support indirect rendering via SDL, even if EGL is unavailable.
This reverts commit 6145913068
.
This commit is contained in:
parent
3da724e76a
commit
8219dbef6f
1 changed files with 0 additions and 9 deletions
|
@ -140,15 +140,6 @@ bool DrmRenderer::initialize(PDECODER_PARAMETERS params)
|
||||||
const bool DIRECT_RENDERING_INIT_FAILED = false;
|
const bool DIRECT_RENDERING_INIT_FAILED = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// If we're not sharing the DRM FD with SDL, that means we don't
|
|
||||||
// have DRM master, so we can't call drmModeSetPlane(). We can
|
|
||||||
// only use EGL to render in this situation.
|
|
||||||
if (!m_SdlOwnsDrmFd) {
|
|
||||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
|
||||||
"Direct rendering via DRM is disabled");
|
|
||||||
return DIRECT_RENDERING_INIT_FAILED;
|
|
||||||
}
|
|
||||||
|
|
||||||
drmModeRes* resources = drmModeGetResources(m_DrmFd);
|
drmModeRes* resources = drmModeGetResources(m_DrmFd);
|
||||||
if (resources == nullptr) {
|
if (resources == nullptr) {
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
|
|
Loading…
Reference in a new issue