Ati changed the OpenGL version string. It used to be in the first part, now it is in the second part encapsulated in parenthesis. So new driver versions are now recognized again. Looking forward to the next change.
svn path=/trunk/KDE/kdebase/workspace/; revision=959824
This commit is contained in:
parent
9bc4d36e85
commit
7991f3e99d
1 changed files with 10 additions and 1 deletions
|
@ -255,7 +255,16 @@ void CompositingPrefs::detectDriverAndVersion()
|
||||||
else if( mGLVendor == "ATI Technologies Inc." )
|
else if( mGLVendor == "ATI Technologies Inc." )
|
||||||
{
|
{
|
||||||
mDriver = "fglrx";
|
mDriver = "fglrx";
|
||||||
mVersion = Version( mGLVersion.split(" ").first());
|
// Ati changed the version string.
|
||||||
|
// The GL version is either in the first or second part
|
||||||
|
QStringList versionParts = mGLVersion.split(" ");
|
||||||
|
if( versionParts.first().count(".") == 2 || versionParts.count() == 1 )
|
||||||
|
mVersion = Version( versionParts.first() );
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// version in second part is encapsulated in ()
|
||||||
|
mVersion = Version( versionParts[1].mid( 1, versionParts[1].length() -2 ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if( mGLRenderer.startsWith( "Mesa DRI" ))
|
else if( mGLRenderer.startsWith( "Mesa DRI" ))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue