Add switches for debug
Fix bug in InputLayoutGL4