diff --git a/common/gl_shader_preproc.hh b/common/gl_shader_preproc.hh index cb3a9ae..4243f59 100644 --- a/common/gl_shader_preproc.hh +++ b/common/gl_shader_preproc.hh @@ -39,7 +39,8 @@ class ShaderPreproc final : public nf7::Context, return pro_.future(); } const std::vector& nfiles() const noexcept { - return *nfiles_; + static const std::vector kEmpty = {}; + return nfiles_? *nfiles_: kEmpty; } private: