Switch texture units before calling _cogl_texture_set_filters()
Switch texture units before calling _cogl_texture_set_filters()

When setting up the state for a layer, we need to switch texture
units before we do anything that might bind the texture, or
we'll bind the wrong texture to the previous unit.

http://bugzilla.openedhand.com/show_bug.cgi?id=2033

Signed-off-by: Emmanuele Bassi <049ee2061f71220e5aaf33f5be422fc2a2b06a44@linux.intel.com>

gcampax/cogl,djdeath/cogl,djdeath/cogl-android,djdeath/cogl,Distrotech/cogl,spatulasnout/cogl,Distrotech/cogl,spatulasnout/cogl,gcampax/cogl,collects/cogl,collects/cogl,Distrotech/cogl,gcampax/cogl,djdeath/cogl-android,Distrotech/cogl,djdeath/cogl-android,gcampax/cogl,djdeath/cogl