Sets the currently bound texture to data.
data can be either an ImageElement, a CanvasElement, a VideoElement, or an ImageData object.
To use texImage2d with a TypedData object, use texImage2dTyped.