[cogl-texture] Fix order of tex coords when compensating for waste
authorNeil Roberts <neil@linux.intel.com>
Wed, 28 Jan 2009 12:57:06 +0000 (12:57 +0000)
committerNeil Roberts <neil@linux.intel.com>
Wed, 28 Jan 2009 12:57:06 +0000 (12:57 +0000)
commitd7c275f5e55ac90e0ca89b637eabc9d8edce4d77
tree8be4fd5aa32d3ecf427b977f338888b8c60d7c37
parent561c441241a2d6510075f07d154a8bbaa89a0596
[cogl-texture] Fix order of tex coords when compensating for waste

When drawing a texture with waste in _cogl_multitexture_unsliced_quad
it scales the texture coordinates so that the waste is not
included. However the formula was the wrong way around so it was
calculating as if the texture coordinates are ordered x1,x2,y1,y2 but
it is actually x1,y1,x2,y2.
clutter/cogl/gl/cogl-texture.c
clutter/cogl/gles/cogl-texture.c