backends/drm: remove unused user data
This commit is contained in:
parent
37c3e0d158
commit
4dec21d8e4
1 changed files with 1 additions and 3 deletions
|
@ -22,9 +22,7 @@ bool DrmPipeline::presentLegacy()
|
|||
if ((!pending.crtc->current() || pending.crtc->current()->needsModeChange(m_primaryBuffer.get())) && !legacyModeset()) {
|
||||
return false;
|
||||
}
|
||||
QVector<DrmPipeline*> *userData = new QVector<DrmPipeline*>();
|
||||
*userData << this;
|
||||
if (drmModePageFlip(gpu()->fd(), pending.crtc->id(), m_primaryBuffer ? m_primaryBuffer->bufferId() : 0, DRM_MODE_PAGE_FLIP_EVENT, userData) != 0) {
|
||||
if (drmModePageFlip(gpu()->fd(), pending.crtc->id(), m_primaryBuffer ? m_primaryBuffer->bufferId() : 0, DRM_MODE_PAGE_FLIP_EVENT, nullptr) != 0) {
|
||||
qCWarning(KWIN_DRM) << "Page flip failed:" << strerror(errno) << m_primaryBuffer;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue