Added ability to specify arbitrary source pitch when uploading textures.
Added reference weldVertices implementation.
Added workaround when unpack row length is not supported on GLES2.
Cleanup.