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:
parent
1e2e93cabb
commit
654995d6aa
1 changed files with 4 additions and 1 deletions
|
@ -235,7 +235,10 @@ void CompositingPrefs::detectDriverAndVersion()
|
|||
{
|
||||
mDriver = "intel";
|
||||
QStringList words = mGLRenderer.split(' ');
|
||||
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" )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue