Fixed bug with uniform upload and indexBufferOffset