[cogl-texture] use the right format when downloading sliced textures from GL
authorRobert Bragg <robert@linux.intel.com>
Fri, 19 Jun 2009 15:39:37 +0000 (16:39 +0100)
committerRobert Bragg <robert@linux.intel.com>
Mon, 29 Jun 2009 22:49:07 +0000 (23:49 +0100)
commit4680b34046aba7adfb958d2995d7e56fdcb3d473
tree2b32c8e846f54a24cbcaa982ff3810b734d611cc
parent24ca92951f739278697990fb25f351045d6ece9c
[cogl-texture] use the right format when downloading sliced textures from GL

_cogl_texture_download_from_gl needs to create transient CoglBitmaps when
downloading sliced textures from GL, and then copies these as subregions
into the final target_bitmap. _cogl_texture_download_from_gl also supports
target_bitmaps with a different format to the source CoglTexture being
downloaded.

The problem was that in the case of slice textures we were always looking
at the format of the CoglTexture, not of the target_bitmap when setting
up the transient slice bitmap.
clutter/cogl/gl/cogl-texture.c