Updates a sub-rectangle of the currently bound texture to data.
data can be either an ImageElement, a CanvasElement, a VideoElement, or an ImageData object.
To use texSubImage2d with a TypedData object, use texSubImage2dTyped.