From a0eaee59d7f333633f9afee9a019c6dc96626f2b Mon Sep 17 00:00:00 2001 From: falsycat Date: Wed, 30 Nov 2022 17:48:00 +0900 Subject: [PATCH] fix an issue that GL/Program cannot take a texture by a file ID --- file/gl_obj.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file/gl_obj.cc b/file/gl_obj.cc index caad78b..08b032a 100644 --- a/file/gl_obj.cc +++ b/file/gl_obj.cc @@ -920,8 +920,8 @@ struct Program { std::vector> 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(). Create(); tex_fu.emplace_back(pa.first, fu);