backends/drm: fix blob updating
Two things about the code were wrong: 1. m_current is used in updateBlob() but was only updated afterwards 2. the assumption that the property having the same ID means it has the same blob contents is not always true BUG: 449285
This commit is contained in:
parent
8955a2420e
commit
97939ceae8
1 changed files with 2 additions and 4 deletions
|
@ -112,10 +112,8 @@ bool DrmProperty::needsCommit() const
|
|||
|
||||
void DrmProperty::setCurrent(uint64_t value)
|
||||
{
|
||||
if (m_current != value) {
|
||||
updateBlob();
|
||||
m_current = value;
|
||||
}
|
||||
m_current = value;
|
||||
updateBlob();
|
||||
}
|
||||
|
||||
uint64_t DrmProperty::current() const
|
||||
|
|
Loading…
Reference in a new issue