From 5ee6399ae7d274a9c78701d79c730f3dd7145812 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 1 Jun 2020 13:11:30 +0300 Subject: [PATCH] Fix a bug with setting uniforms after texunits --- source/renderpass.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/renderpass.cpp b/source/renderpass.cpp index d2ce1652..0d76913b 100644 --- a/source/renderpass.cpp +++ b/source/renderpass.cpp @@ -182,9 +182,7 @@ void RenderPass::Loader::texunit_named(unsigned i, const string &n) void RenderPass::Loader::uniforms() { obj.ensure_private_shader_data(); - RefPtr shd = new ProgramData(obj.shprog); - load_sub(*shd); - obj.shdata = shd.release(); + load_sub(*obj.shdata); } void RenderPass::Loader::uniform_slot(const string &name) -- 2.45.2