I'm guessing that the shader you're using tries to sample the depth buffer? And I think that is not possible..