Move TexParameter calls to a separate fn for KTX