cogl-sub-texture: Optimise taking a sub texture of a sub texture
authorNeil Roberts <neil@linux.intel.com>
Fri, 12 Feb 2010 10:08:51 +0000 (10:08 +0000)
committerNeil Roberts <neil@linux.intel.com>
Fri, 12 Feb 2010 16:57:17 +0000 (16:57 +0000)
commit4be4f56bdf463ccac89c7068b47ba1450bee95ee
tree20a9f7d5b5e6da420fcbce519ea7fe135afba763
parent2018b5b16750b090c5592ebd5262fc66d809183e
cogl-sub-texture: Optimise taking a sub texture of a sub texture

When creating a Cogl sub-texture, if the full texture is also a sub
texture it will now just offset the x and y and reference the full
texture instead. This avoids one level of indirection when rendering
the texture which reduces the chances of getting rounding errors in
the calculations.
clutter/cogl/cogl/cogl-sub-texture-private.h
clutter/cogl/cogl/cogl-sub-texture.c
clutter/cogl/cogl/cogl-texture.h
tests/conform/test-cogl-sub-texture.c