X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogram.cpp;h=75f982d7f5dc8fa4c2235af999249cd23cae4146;hb=e77c027ce8efb5dafd93bdd0f77504218a955665;hp=1b8ffe4dfe3b4fff4e20be818014fb91d083f6c4;hpb=dc1d1159a61f378bda11e5989ad694a86b9a3c77;p=libs%2Fgl.git diff --git a/source/program.cpp b/source/program.cpp index 1b8ffe4d..75f982d7 100644 --- a/source/program.cpp +++ b/source/program.cpp @@ -108,7 +108,7 @@ string Program::get_info_log() const return string(log, len); } -void Program::bind() +void Program::bind() const { if(!linked) throw InvalidState("Program is not linked"); @@ -137,7 +137,7 @@ void Program::maybe_bind() bind(); } -Program *Program::cur_prog=0; +const Program *Program::cur_prog=0; Program::Loader::Loader(Program &p):