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

Close #116