From: Mikko Rasa Date: Wed, 25 Apr 2018 10:40:12 +0000 (+0300) Subject: Check uniform names when loading RenderPasses X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=a6e46d61c4f3c54b6f44b0863e18581b889820dd;p=libs%2Fgl.git Check uniform names when loading RenderPasses --- diff --git a/source/renderpass.cpp b/source/renderpass.cpp index 4063df5f..4b458f6d 100644 --- a/source/renderpass.cpp +++ b/source/renderpass.cpp @@ -143,7 +143,7 @@ void RenderPass::Loader::uniforms() { if(!obj.shprog) throw invalid_operation("RenderPass::Loader::uniforms"); - RefPtr shd = new ProgramData; + RefPtr shd = new ProgramData(obj.shprog); load_sub(*shd); obj.shdata = shd; }