From 639238c53510fb9483e92fb1b808d33fce992bff Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 24 May 2019 22:25:57 +0300 Subject: [PATCH] Copy the material slot of RenderPass --- source/renderpass.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/renderpass.cpp b/source/renderpass.cpp index eb4ae1f9..55776cca 100644 --- a/source/renderpass.cpp +++ b/source/renderpass.cpp @@ -28,6 +28,7 @@ RenderPass::RenderPass(const RenderPass &other): shdata(other.shdata), uniform_slots(other.uniform_slots), material(other.material), + material_slot(other.material_slot), texturing(other.texturing ? new Texturing(*other.texturing) : 0), tex_names(other.tex_names), back_faces(other.back_faces) @@ -39,6 +40,7 @@ RenderPass &RenderPass::operator=(const RenderPass &other) shdata = other.shdata; uniform_slots = other.uniform_slots; material = other.material; + material_slot = other.material_slot; texturing = other.texturing ? new Texturing(*other.texturing) : 0; tex_names = other.tex_names; back_faces = other.back_faces; -- 2.43.0