cogl: Set the layer matrix on the right layer instead of a random one
authorNeil Roberts <neil@linux.intel.com>
Wed, 9 Feb 2011 15:24:43 +0000 (15:24 +0000)
committerNeil Roberts <neil@linux.intel.com>
Wed, 9 Feb 2011 16:14:13 +0000 (16:14 +0000)
commit645ca5620815d36c4a49546fd61928bafc3d15dd
tree0e0bf58c4d51aed529e44e51ef82c79b4b52fc7a
parent98a33e03d32efc8b551b80a1a5af065ea9e1f7a8
cogl: Set the layer matrix on the right layer instead of a random one

When uploading the layer matrix to GL it wasn't first calling
glActiveTextureMatrix to set the right texture unit for the
layer. This would end up setting the texture matrix on whatever layer
happened to be previously active. This happened to work for
test-cogl-multitexture presumably because it was coincidentally
setting the layer matrix on the last used layer.
clutter/cogl/cogl/cogl-pipeline-vertend-fixed.c
clutter/cogl/cogl/cogl-pipeline-vertend-glsl.c