X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogramdata.h;h=fe907d5cb65e21cfecbd5b01f3ec5bb2286f1c4a;hb=53953f28255e782ed640a9e8d2d42c9b218943ad;hp=78f7292647a97436fed9e4b28ed0bfa17280f4f0;hpb=653b618e65b291a344abb1ee9d08dc5d1fde1094;p=libs%2Fgl.git 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();