Port nvidia workaround to TextureRead