Issue #106: Warning - Hardware acceleration is not supported on this device

This commit is contained in:
Jakub Melka 2023-11-08 19:32:50 +01:00
parent 6fe978f031
commit 881364f0a0
1 changed files with 8 additions and 0 deletions

View File

@ -996,6 +996,14 @@ const PDFRendererInfo::Info& PDFRendererInfo::getHardwareAccelerationSupportedIn
context.doneCurrent();
surface.destroy();
versionString = versionString.trimmed();
int spaceIndex = versionString.indexOf(QChar(QChar::Space));
if (spaceIndex != -1)
{
versionString = versionString.left(spaceIndex);
}
info.vendor = vendorString;
info.renderer = rendererString;
info.version = versionString;