X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fprogram.cpp;h=1a7ac17b3e99325d33918cebff6593b4c257a989;hb=b274dc87db4422498e72823649358114dfca0096;hp=4707f4c0416e2be185441efebe847e65ed49fd7a;hpb=f82ef715f0d7e1e7d0b93be4b7b89c8ce6bba40b;p=libs%2Fgl.git diff --git a/source/core/program.cpp b/source/core/program.cpp index 4707f4c0..1a7ac17b 100644 --- a/source/core/program.cpp +++ b/source/core/program.cpp @@ -17,6 +17,8 @@ void Program::add_stages(const Module &mod, const map &spec_values) if(has_stages()) throw invalid_operation("Program::add_stages"); + reflect_data = ReflectData(); + TransientData transient; switch(mod.get_format()) { @@ -30,8 +32,6 @@ void Program::add_stages(const Module &mod, const map &spec_values) throw invalid_argument("Program::add_stages"); } - reflect_data = ReflectData(); - finalize(mod); if(mod.get_format()==Module::GLSL)