debugging z-buffer.. error found in ZBuffer constructor