X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Frenderpass.cpp;h=3fbec4822607ec0f1bceec0e3bd62ca34314547b;hp=74b734128ba5d30710aedbc12ce30f505ea8ca3c;hb=66636f876635ee283594c15a7dbd47d5bb639366;hpb=fe2fc291a4fc618425c64112c9ffd3519f0b8a3e diff --git a/source/materials/renderpass.cpp b/source/materials/renderpass.cpp index 74b73412..3fbec482 100644 --- a/source/materials/renderpass.cpp +++ b/source/materials/renderpass.cpp @@ -43,6 +43,7 @@ void RenderPass::maybe_create_material_shader() extra_spec["use_shadow_map"] = true; shprog = material->create_compatible_shader(extra_spec); + shprog.keep(); if(shdata) shdata = new ProgramData(*shdata, shprog.get());