]> git.tdb.fi Git - libs/gl.git/commitdiff
Check uniform names when loading RenderPasses
authorMikko Rasa <tdb@tdb.fi>
Wed, 25 Apr 2018 10:40:12 +0000 (13:40 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 25 Apr 2018 10:40:12 +0000 (13:40 +0300)
source/renderpass.cpp

index 4063df5fcf27ea5c56069cd8621473f181e9a3ce..4b458f6d5f9b57ca555b542e4724ed3b08d0b5ae 100644 (file)
@@ -143,7 +143,7 @@ void RenderPass::Loader::uniforms()
 {
        if(!obj.shprog)
                throw invalid_operation("RenderPass::Loader::uniforms");
-       RefPtr<ProgramData> shd = new ProgramData;
+       RefPtr<ProgramData> shd = new ProgramData(obj.shprog);
        load_sub(*shd);
        obj.shdata = shd;
 }