opengl: Re-arrange code in GLTexture::upload()

Re-arrange the code so it's easier to set GL_UNPACK_ROW_LENGTH.

Merge request reports

Loading