0a48a52ba1
There's no need to enable the texture target unless it is going to be used for rendering. Enabling it directly with glEnable calls confuses Cogl's state caching. This is a replacement for the patch in bug 1483 which was reverted.