cogl-atlas-texture: Remove textures from the atlas when mipmapping is required
authorNeil Roberts <neil@linux.intel.com>
Sat, 5 Dec 2009 13:48:03 +0000 (13:48 +0000)
committerNeil Roberts <neil@linux.intel.com>
Sat, 5 Dec 2009 14:11:57 +0000 (14:11 +0000)
commit231cfffa1871806713928f7b4c599d904a813fb9
tree0845555562405f55faf0dec762d1dd68e8f151c7
parent6cf5ee2cbdad4bb71a065bb7e49a534ca7ba78ac
cogl-atlas-texture: Remove textures from the atlas when mipmapping is required

Mipmaps don't work very well in the current atlas because there is not
enough padding between the textures. If ensure_mipmaps is called it
will now create a new texture and migrate the atlased texture to
it. It will use the same blit mechanism as when migrating so it will
try to use an FBO for a fast blit. However if this is not possible it
will end up downloading the data for the entire atlas which is not
ideal.
clutter/cogl/cogl/cogl-atlas-texture.c