]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix material registry initialization bug
authorMikko Rasa <tdb@tdb.fi>
Sat, 6 Feb 2021 22:09:19 +0000 (00:09 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 6 Feb 2021 22:09:19 +0000 (00:09 +0200)
source/material.cpp

index a99f3c2cccc83f235b1da411f474288f386cffe7..810ecd174d81fb407730b33b0488b456dcee4f86 100644 (file)
@@ -65,6 +65,7 @@ Material::MaterialRegistry &Material::get_material_registry()
        static bool initialized = false;
        if(!initialized)
        {
+               initialized = true;
                registry.register_type<BasicMaterial>("basic");
                registry.register_type<PbrMaterial>("pbr");
        }