Fix crash in QKmsDevice::createScreenForConnector
Fixes: QTBUG-104809 Pick-to: 5.15 6.2 6.3 6.4 Change-Id: Ic71311e5cb674da46a4a1065dae739bc9ac6e285 Reviewed-by: Liang Qi <liang.qi@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
4cc84dc31c
commit
da43c180c8
@ -284,7 +284,7 @@ QPlatformScreen *QKmsDevice::createScreenForConnector(drmModeResPtr resources,
|
||||
|
||||
if (current < 0 && crtc_mode.clock != 0) {
|
||||
modes << crtc_mode;
|
||||
current = mode.size() - 1;
|
||||
current = modes.size() - 1;
|
||||
}
|
||||
|
||||
if (configuration == OutputConfigCurrent)
|
||||
|
Loading…
x
Reference in New Issue
Block a user