Use sampler Object in setTexture when available.