mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 08:26:00 +01:00
drm: guard connector in calculateMode
This commit is contained in:
parent
4fd590af94
commit
f485ad7546
1 changed files with 3 additions and 0 deletions
|
@ -1703,6 +1703,9 @@ uint32_t Aquamarine::CDRMFB::submitBuffer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Aquamarine::SDRMConnectorCommitData::calculateMode(Hyprutils::Memory::CSharedPointer<SDRMConnector> connector) {
|
void Aquamarine::SDRMConnectorCommitData::calculateMode(Hyprutils::Memory::CSharedPointer<SDRMConnector> connector) {
|
||||||
|
if (!connector || !connector->output || !connector->output->state)
|
||||||
|
return;
|
||||||
|
|
||||||
const auto& STATE = connector->output->state->state();
|
const auto& STATE = connector->output->state->state();
|
||||||
const auto MODE = STATE.mode ? STATE.mode : STATE.customMode;
|
const auto MODE = STATE.mode ? STATE.mode : STATE.customMode;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue