From: Mikko Rasa Date: Mon, 1 Jun 2020 10:11:30 +0000 (+0300) Subject: Fix a bug with setting uniforms after texunits X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=5ee6399ae7d274a9c78701d79c730f3dd7145812;p=libs%2Fgl.git Fix a bug with setting uniforms after texunits --- 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)