From: Mikko Rasa Date: Fri, 24 May 2019 19:25:57 +0000 (+0300) Subject: Copy the material slot of RenderPass X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=639238c53510fb9483e92fb1b808d33fce992bff;p=libs%2Fgl.git Copy the material slot of RenderPass --- 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;