fix an issue that GL/Program cannot take a texture by a file ID

This commit is contained in:
falsycat 2022-11-30 17:48:00 +09:00
parent 1969f7cdbe
commit a0eaee59d7

View File

@ -920,8 +920,8 @@ struct Program {
std::vector<std::pair<std::string, gl::Texture::Factory::Product>> tex_fu;
tex_fu.reserve(tex->size());
for (auto& pa : *tex) {
auto fu = base.
ResolveOrThrow(pa.second.string()).
auto fu = pa.second.file(base).
interfaceOrThrow<gl::Texture::Factory>().
Create();
tex_fu.emplace_back(pa.first, fu);