Add a sanity check for shader linking, active in debug mode