Trying to fix depth / stencil buffer

Adding more logging func