recent intel renderer strings are like

'Mesa DRI Intel(R) 965G GEM 20100328 2010Q1 x86/MMX/SSE2',
having one more field from the end - fix reading version
(bnc#605498)


svn path=/trunk/KDE/kdebase/workspace/; revision=1139202
This commit is contained in:
Luboš Luňák 2010-06-17 16:23:45 +00:00
parent 1e2e93cabb
commit 654995d6aa

View file

@ -235,7 +235,10 @@ void CompositingPrefs::detectDriverAndVersion()
{
mDriver = "intel";
QStringList words = mGLRenderer.split(' ');
mVersion = Version( words[ words.count() - 2 ] );
if( QRegExp( "[:digit:]+" ).exactMatch( words[ words.count() - 2 ] ))
mVersion = Version( words[ words.count() - 2 ] );
else
mVersion = Version( words[ words.count() - 3 ] );
}
else if( mGLVendor == "NVIDIA Corporation" )
{