kwin/effects/lookingglass
Fredrik Höglund 450be6a378 Add a levels parameter to the GLTexture ctor
Prior to this commit we didn't know if mipmaps were going to be used
when we created the GL texture, which meant that we couldn't tell the
driver whether to allocate storage for mipmaps or not.

This resulted in one of two things happening depending on the driver;
either it would allocate storage for mipmaps that in most cases would
never be used, or it wouldn't and would later be forced to reallocate
the texture when mipmaps were added.

By adding this parameter we can now explicitly tell the driver how
many mipmap levels will be used.

The parameter is only added to the non-image constructor for now. The
image constructor is changed to only allocate a single level, which
matches how textures created from images are used in kwin. This may
need to be revisited in the future.
2014-12-14 18:33:52 +01:00
..
data
CMakeLists.txt
lookingglass.cpp Add a levels parameter to the GLTexture ctor 2014-12-14 18:33:52 +01:00
lookingglass.h
lookingglass.kcfg
lookingglass_config.cpp
lookingglass_config.desktop SVN_SILENT made messages (.desktop file) 2014-10-25 08:58:29 +00:00
lookingglass_config.h
lookingglass_config.ui
lookingglassconfig.kcfgc