]> git.tdb.fi Git - libs/gl.git/blobdiff - source/program.cpp
Generalize VertexBuffer into Buffer with support for other types as well
[libs/gl.git] / source / program.cpp
index 1b8ffe4dfe3b4fff4e20be818014fb91d083f6c4..75f982d7f5dc8fa4c2235af999249cd23cae4146 100644 (file)
@@ -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):