Use glTexSubImage2D when possible, as suggested by https://www.khronos.org/opengl...