cogl-atlas-texture: Check for errors when creating the atlas texture
authorNeil Roberts <neil@linux.intel.com>
Tue, 16 Feb 2010 11:58:47 +0000 (11:58 +0000)
committerNeil Roberts <neil@linux.intel.com>
Tue, 16 Feb 2010 12:07:18 +0000 (12:07 +0000)
commita5021ba30f553d641399545d9777eb5b4b385ac1
treeab7662b410ed0641c7010aa5e8828527f58c0ab1
parente65bb38720c8990684ce24bda08b78d8da49cc1b
cogl-atlas-texture: Check for errors when creating the atlas texture

cogl_texture_2d_new may fail in certain circumstances so
cogl_atlas_texture_reserve_space should detect this and also
fail. This will cause cogl_texture_new to fallback to a sliced
texture.

Thanks to Vladimir Ivakin for reporting this problem.
clutter/cogl/cogl/cogl-atlas-texture.c