Texturing using targets.

Add texturing to targets other than GL_TEXTURE_2D.