Panic if requesting a depth function and no depth buffer is available

CLose #116