mirror of https://github.com/JakubMelka/PDF4QT.git
Issue #106: Warning - Hardware acceleration is not supported on this device
This commit is contained in:
parent
6fe978f031
commit
881364f0a0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue