From: Mikko Rasa Date: Tue, 4 May 2021 20:13:33 +0000 (+0300) Subject: Access builtin resources through a global instance X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=fe2fc291a4fc618425c64112c9ffd3519f0b8a3e;hp=fe2fc291a4fc618425c64112c9ffd3519f0b8a3e;p=libs%2Fgl.git Access builtin resources through a global instance Explicitly passing the Resources reference causes problems when some classes in a hierarchy need it and others don't. It's also awkward in RenderPass::set_material and PostProcessor templates. It doesn't even matter which instance is passed in since the data is builtin anyway. The first created Resources instance is now registered as the one to use for builtin data, unless suppressed by a constructor parameter. ---