Disable the glTexSubImage optimization, see issue #2222 .