Clang compains about this too when trying to assign the pass map in
Technique.
back_faces(other.back_faces)
{ }
+RenderPass &RenderPass::operator=(const RenderPass &other)
+{
+ shprog = other.shprog;
+ shdata = other.shdata ? new ProgramData(*other.shdata) : 0;
+ material = other.material;
+ texturing = other.texturing ? new Texturing(*other.texturing) : 0;
+ tex_names = other.tex_names;
+ back_faces = other.back_faces;
+ return *this;
+}
+
RenderPass::~RenderPass()
{
delete texturing;
std::map<std::string, unsigned> tex_names;
bool back_faces;
- RenderPass &operator=(const RenderPass &);
public:
RenderPass();
RenderPass(const RenderPass &);
+ RenderPass &operator=(const RenderPass &);
~RenderPass();
void set_shader_program(const Program *, const ProgramData *);