make initialization of depth buffer lazy
removed resize (there is no reason to use it and causes crash)