[4.0] Avoid calling glActiveTexture() unnecessarily.