moved CreateFBO/CreateRT to TextureManager

This commit is contained in:
2024-11-09 00:11:43 +08:00
parent 336688b4f0
commit 6b466f63cf
9 changed files with 77 additions and 53 deletions

View File

@@ -28,7 +28,15 @@ public:
if(!gmm)
return(nullptr);
return(new T(gmm));
GraphModule *gm=new T(gmm);
if(!gm->Init())
{
delete gm;
return(nullptr);
}
return(true);
}
};//template<typename T> class RegistryGraphModule:public GraphModuleFactory