diff --git a/libs/gfx/source/program.cpp b/libs/gfx/source/program.cpp index 7401a8cb..7094d25d 100644 --- a/libs/gfx/source/program.cpp +++ b/libs/gfx/source/program.cpp @@ -399,8 +399,6 @@ namespace psemek::gfx { std::string name_str(name); auto index = gl::GetUniformBlockIndex(program_, name.data()); - if (index == gl::INVALID_INDEX) - throw std::runtime_error("Unknown uniform block: " + name_str); uniform_blocks_[std::move(name_str)] = index; return index; }