Allow kdelibs/kdebase compile without glu library (review 6213)
svn path=/trunk/KDE/kdebase/workspace/; revision=1209642
This commit is contained in:
parent
e6750d5ba4
commit
0f2e500abd
2 changed files with 4 additions and 0 deletions
|
@ -241,6 +241,7 @@ void CompositingPrefs::detectDriverAndVersion()
|
|||
// See http://techbase.kde.org/Projects/KWin/HW for a list of some cards that are known to work.
|
||||
void CompositingPrefs::applyDriverSpecificOptions()
|
||||
{
|
||||
#ifdef KWIN_HAVE_OPENGL_COMPOSITING
|
||||
// Always recommend
|
||||
mRecommendCompositing = true;
|
||||
|
||||
|
@ -248,6 +249,7 @@ void CompositingPrefs::applyDriverSpecificOptions()
|
|||
mStrictBinding = !gl->supports( LooseBinding );
|
||||
if ( gl->driver() == Driver_Intel )
|
||||
mEnableVSync = false;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -57,6 +57,7 @@ int currentRefreshRate()
|
|||
int rate = -1;
|
||||
if( options->refreshRate > 0 ) // use manually configured refresh rate
|
||||
rate = options->refreshRate;
|
||||
#ifdef KWIN_HAVE_OPENGL_COMPOSITING
|
||||
else if ( GLPlatform::instance()->driver() == Driver_NVidia )
|
||||
{
|
||||
QProcess nvidia_settings;
|
||||
|
@ -73,6 +74,7 @@ int currentRefreshRate()
|
|||
rate = qRound(frate);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef HAVE_XRANDR
|
||||
else if( Extensions::randrAvailable() )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue