Move calling glTexParameteri