X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogramdata.h;h=fe907d5cb65e21cfecbd5b01f3ec5bb2286f1c4a;hp=78f7292647a97436fed9e4b28ed0bfa17280f4f0;hb=97b8f0d945474582c2213b70418d399e5641f0d5;hpb=653b618e65b291a344abb1ee9d08dc5d1fde1094 diff --git a/source/programdata.h b/source/programdata.h index 78f72926..fe907d5c 100644 --- a/source/programdata.h +++ b/source/programdata.h @@ -123,6 +123,7 @@ private: typedef std::map ProgramMap; // XXX All these mutables are a bit silly, but I'm out of better ideas + const Program *tied_program; SlotMap uniform_slots; std::vector uniforms; mutable BlockMap blocks; @@ -132,7 +133,7 @@ private: mutable unsigned dirty; public: - ProgramData(); + ProgramData(const Program * = 0); ProgramData(const ProgramData &); ProgramData &operator=(const ProgramData &); ~ProgramData();