Merge integration refs/builds/qtci/dev/1617260319
This commit is contained in:
commit
5bf4133c17
@ -58,7 +58,12 @@ bool QEglFSKmsEglDevice::open()
|
||||
{
|
||||
Q_ASSERT(fd() == -1);
|
||||
|
||||
int fd = drmOpen(devicePath().toLocal8Bit().constData(), nullptr);
|
||||
int fd = -1;
|
||||
|
||||
if (devicePath().compare("drm-nvdc") == 0)
|
||||
fd = drmOpen(devicePath().toLocal8Bit().constData(), nullptr);
|
||||
else
|
||||
fd = qt_safe_open(devicePath().toLocal8Bit().constData(), O_RDWR);
|
||||
if (Q_UNLIKELY(fd < 0))
|
||||
qFatal("Could not open DRM (NV) device");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user