]> git.tdb.fi Git - libs/gl.git/commitdiff
Access builtin resources through a global instance
authorMikko Rasa <tdb@tdb.fi>
Tue, 4 May 2021 20:13:33 +0000 (23:13 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 4 May 2021 20:30:07 +0000 (23:30 +0300)
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.


No differences found