eglfs: Use drmClose in drm/EGLDevice backend

Pick-to: 6.0 5.15
Fixes: QTBUG-90350
Change-Id: I29a71e4abc2df7b777a895792bc5385a89223895
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
Laszlo Agocs 2021-01-15 16:04:31 +01:00
parent 167bcafcb6
commit 9573441236

View File

@ -71,7 +71,7 @@ void QEglFSKmsEglDevice::close()
{
// Note: screens are gone at this stage.
if (qt_safe_close(fd()) == -1)
if (drmClose(fd()) == -1)
qErrnoWarning("Could not close DRM (NV) device");
setFd(-1);