X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Frender%2Fprogramdata.cpp;h=cfd2c0f5257b0d45d341ff15119805ea96038474;hp=40eba5e5d6840a4580c1d311c67da732231253ab;hb=e70662d7812464159f2e47f4bebb69d88f89ae93;hpb=28d12c73b197a16f7635badc01e42375728fde85 diff --git a/source/render/programdata.cpp b/source/render/programdata.cpp index 40eba5e5..cfd2c0f5 100644 --- a/source/render/programdata.cpp +++ b/source/render/programdata.cpp @@ -60,6 +60,22 @@ ProgramData &ProgramData::operator=(const ProgramData &other) return *this; } +ProgramData::ProgramData(ProgramData &&other): + tied_program(other.tied_program), + uniforms(move(other.uniforms)), + uniform_data(move(other.uniform_data)), + generation(other.generation), + blocks(move(other.blocks)), + programs(move(other.programs)), + last_buffer_block(other.last_buffer_block), + buffer(other.buffer), + dirty(other.dirty), + debug_name(move(other.debug_name)) +{ + other.blocks.clear(); + other.buffer = 0; +} + ProgramData::~ProgramData() { for(SharedBlock &b: blocks)