* fix for previous commit (forgot to change debug checks)
* fix for debug build issue in COC with "invalid sun direction"