Skip to content

Commit

Permalink
drm: fix custom mode check
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Aug 9, 2024
1 parent 131ed05 commit 1a7ca38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
const uint32_t COMMITTED = STATE.committed;

if ((COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_ENABLED) && STATE.enabled) {
if (!STATE.mode && STATE.customMode) {
if (!STATE.mode && !STATE.customMode) {
backend->backend->log(AQ_LOG_ERROR, "drm: No mode on enable commit");
return false;
}
Expand Down

0 comments on commit 1a7ca38

Please sign in to comment.