mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-05 07:16:05 +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)
|
||||
{
|
||||
if (m_HdrOutputMetadataProp != nullptr) {
|
||||
if (m_HdrOutputMetadataProp != nullptr && m_HdrOutputMetadataBlobId != 0) {
|
||||
int err = drmModeObjectSetProperty(m_DrmFd, m_ConnectorId, DRM_MODE_OBJECT_CONNECTOR,
|
||||
m_HdrOutputMetadataProp->prop_id,
|
||||
enabled ? m_HdrOutputMetadataBlobId : 0);
|
||||
|
||||
Reference in New Issue
Block a user