From a6e46d61c4f3c54b6f44b0863e18581b889820dd Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 25 Apr 2018 13:40:12 +0300 Subject: [PATCH] Check uniform names when loading RenderPasses --- source/renderpass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.45.2