cogl-gles2-wrapper: Fix some cases using the wrong texture unit
authorNeil Roberts <neil@linux.intel.com>
Tue, 8 Jun 2010 16:26:26 +0000 (17:26 +0100)
committerNeil Roberts <neil@linux.intel.com>
Tue, 8 Jun 2010 16:26:26 +0000 (17:26 +0100)
commitac3e0150edd8da7dceb2933309fc5e4f15f1e38a
tree922822cc4e9099d09893be0b321e9015f371a87b
parent00675f42aab932b2a2cb7d128d282625f681e449
cogl-gles2-wrapper: Fix some cases using the wrong texture unit

At two places in cogl_wrap_prepare_for_draw it was trying to loop over
the texture units to flush some state. However it was retrieving the
texture unit pointer using w->active_texture_unit instead of the loop
index so it would end up with the wrong state.

Also in glEnableClientState it was using the active unit instead of
the client active unit.
clutter/cogl/cogl/driver/gles/cogl-gles2-wrapper.c