Fix shaders crashing instead of logging errors because of too long buffer size.