Use texcoord attribute only when a texture is actually used