Revision adc3719...

Go back to digest for 23rd September 2012

Features in KDE Base

Martin Gräßlin committed changes in [kde-workspace] /:

Do not use ShaderManager::isValid to check for OpenGL2 compositing

The main usage of ShaderManager::isValid was to have OpenGL2 specific
code pathes. Now we have an actual OpenGL2Compositing type and we know
that the ShaderManager is valid if we have this compositing type and we
know that it is not valid on OpenGL1Compositing. This gives us a much
better check and allows us to use the isValid method just for where we
want to check whether the shaders compiled successfully.

In addition some effects require OpenGL2, so we do not need to check
again that the ShaderManager is valid. Such usages are removed.

File Changes

Modified 18 files
  •   kwin/lanczosfilter.cpp
  •   kwin/workspace.cpp
  •   kwin/libkwineffects/kwinglutils.h
  •   kwin/effects/blur/blur.cpp
  •   kwin/effects/blur/blurshader.cpp
  •   kwin/effects/coverswitch/coverswitch.cpp
  •   kwin/effects/cube/cube.cpp
  •   kwin/effects/explosion/explosion.cpp
  •   kwin/effects/invert/invert.cpp
  •   kwin/effects/logout/logout.cpp
  •   kwin/effects/magnifier/magnifier.cpp
  •   kwin/effects/mousemark/mousemark.cpp
  •   kwin/effects/resize/resize.cpp
  •   kwin/effects/showfps/showfps.cpp
  •   kwin/effects/showpaint/showpaint.cpp
  •   kwin/effects/snaphelper/snaphelper.cpp
  •   kwin/effects/startupfeedback/startupfeedback.cpp
  •   kwin/effects/trackmouse/trackmouse.cpp
18 files changed in total