cogl-texture-2d-sliced: Don't create the slice textures twice
authorNeil Roberts <neil@linux.intel.com>
Wed, 29 Sep 2010 14:40:22 +0000 (15:40 +0100)
committerNeil Roberts <neil@linux.intel.com>
Wed, 29 Sep 2010 15:14:34 +0000 (16:14 +0100)
commita278a1f94053372d49fb31f82cac551f186a28f4
tree7db91677f8e328a7d9daddd600d10cfb65bef378
parent54f5e168ecd67838d9fae08912e37f47d786f45e
cogl-texture-2d-sliced: Don't create the slice textures twice

Both of the cogl_texture_2d_sliced_new functions called the
slices_create function which creates the underlying GL
textures. However this was also called by init_base so the textures
would end up being created twice. This would make it leak the GL
textures and the arrays which point to them.
clutter/cogl/cogl/cogl-texture-2d-sliced.c