From: Mikko Rasa Date: Sat, 6 Feb 2021 22:09:19 +0000 (+0200) Subject: Fix material registry initialization bug X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=5d2b42b370d4669e2eb018cb3bdf46293f4c04ea;p=libs%2Fgl.git Fix material registry initialization bug --- diff --git a/source/material.cpp b/source/material.cpp index a99f3c2c..810ecd17 100644 --- a/source/material.cpp +++ b/source/material.cpp @@ -65,6 +65,7 @@ Material::MaterialRegistry &Material::get_material_registry() static bool initialized = false; if(!initialized) { + initialized = true; registry.register_type("basic"); registry.register_type("pbr"); }