450be6a378
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. |
||
---|---|---|
.. | ||
autotests | ||
anidata.cpp | ||
anidata_p.h | ||
CMakeLists.txt | ||
kwinanimationeffect.cpp | ||
kwinanimationeffect.h | ||
kwinconfig.h.cmake | ||
kwineffects.cpp | ||
kwineffects.h | ||
kwinglcolorcorrection.cpp | ||
kwinglcolorcorrection.h | ||
kwinglcolorcorrection_p.h | ||
kwinglobals.h | ||
kwinglplatform.cpp | ||
kwinglplatform.h | ||
kwingltexture.cpp | ||
kwingltexture.h | ||
kwingltexture_p.h | ||
kwinglutils.cpp | ||
kwinglutils.h | ||
kwinglutils_funcs.cpp | ||
kwinglutils_funcs.h | ||
kwinxrenderutils.cpp | ||
kwinxrenderutils.h | ||
Mainpage.dox | ||
Messages.sh |