Texture glGetTexImage function.