diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index 33495da..040b069 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -977,12 +977,12 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) { return false; } - if (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER && !STATE.buffer) { + if ((COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER) && !STATE.buffer) { backend->backend->log(AQ_LOG_ERROR, "drm: No buffer committed"); return false; } - if (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER && STATE.buffer->attachments.has(AQ_ATTACHMENT_DRM_KMS_UNIMPORTABLE)) { + if ((COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER) && STATE.buffer->attachments.has(AQ_ATTACHMENT_DRM_KMS_UNIMPORTABLE)) { backend->backend->log(AQ_LOG_TRACE, "drm: Cannot commit a KMS-unimportable buffer."); return false; }