added invalid depth caching as well, crashes appear to be resolved. Crazy numbers of invalid interfaces (>70) now render black and don't crash.