mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-15 21:22:40 +00:00
Don't set the HDR metadata blob if we don't have one
This commit is contained in:
@@ -448,7 +448,7 @@ int DrmRenderer::getRendererAttributes()
|
|||||||
|
|
||||||
void DrmRenderer::setHdrMode(bool enabled)
|
void DrmRenderer::setHdrMode(bool enabled)
|
||||||
{
|
{
|
||||||
if (m_HdrOutputMetadataProp != nullptr) {
|
if (m_HdrOutputMetadataProp != nullptr && m_HdrOutputMetadataBlobId != 0) {
|
||||||
int err = drmModeObjectSetProperty(m_DrmFd, m_ConnectorId, DRM_MODE_OBJECT_CONNECTOR,
|
int err = drmModeObjectSetProperty(m_DrmFd, m_ConnectorId, DRM_MODE_OBJECT_CONNECTOR,
|
||||||
m_HdrOutputMetadataProp->prop_id,
|
m_HdrOutputMetadataProp->prop_id,
|
||||||
enabled ? m_HdrOutputMetadataBlobId : 0);
|
enabled ? m_HdrOutputMetadataBlobId : 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user