X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Frender%2Fprogramdata.cpp;h=8defce5aab2ae43a802c8e348e0d32ec9d0e2289;hp=31fc8fa262949b9b5ea5fa328012525ef6d03833;hb=8544116298d7a1be176f52be48c9952529f5c446;hpb=729a477b47e97aea41f3f0b5db551f02bf70d1ee diff --git a/source/render/programdata.cpp b/source/render/programdata.cpp index 31fc8fa2..8defce5a 100644 --- a/source/render/programdata.cpp +++ b/source/render/programdata.cpp @@ -1,7 +1,5 @@ #include -#include #include -#include #include #include "buffer.h" #include "color.h" @@ -19,11 +17,7 @@ namespace Msp { namespace GL { ProgramData::ProgramData(const Program *p): - tied_program(p), - generation(0), - last_buffer_block(0), - buffer(0), - dirty(0) + tied_program(p) { } // Blocks are intentionally left uncopied @@ -31,17 +25,11 @@ ProgramData::ProgramData(const ProgramData &other): tied_program(other.tied_program), uniforms(other.uniforms), uniform_data(other.uniform_data), - generation(other.generation), - last_buffer_block(0), - buffer(0), - dirty(0) + generation(other.generation) { } ProgramData::ProgramData(const ProgramData &other, const Program *p): - tied_program(p), - last_buffer_block(0), - buffer(0), - dirty(0) + tied_program(p) { if(tied_program) { @@ -656,14 +644,6 @@ void ProgramData::set_debug_name(const string &name) } -ProgramData::TaggedUniform::TaggedUniform(): - type(VOID), - array_size(0), - data_offset(0), - data_size(0) -{ } - - ProgramData::SharedBlock::SharedBlock(ReflectData::LayoutHash h): block_hash(h), used(0),