]> git.tdb.fi Git - libs/gl.git/blobdiff - source/program.h
Generalize VertexBuffer into Buffer with support for other types as well
[libs/gl.git] / source / program.h
index fde4d85439a2cfe9e7cb82a62aebd965f111d082..ad37fb65bfca60d51094e741732faf274da7e1ef 100644 (file)
@@ -27,7 +27,7 @@ private:
        bool del_shaders;
        bool linked;
 
-       static Program *cur_prog;
+       static const Program *cur_prog;
 
 public:
        class Loader: public DataFile::Loader
@@ -61,7 +61,7 @@ public:
        int get_param(GLenum param) const;
        bool get_linked() const { return linked; }
        std::string get_info_log() const;
-       void bind();
+       void bind() const;
        int get_uniform_location(const std::string &) const;
 
        static void unbind();