]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/programdata.h
Set OpenGL debug labels on various objects loaded from Resources
[libs/gl.git] / source / render / programdata.h
index aeffae45700726f9bc5bd9c7fbc350477486eb90..a05674dd21927304d3755aa5f0118870ef81729e 100644 (file)
@@ -158,6 +158,7 @@ private:
        mutable BufferBackedUniformBlock *last_buffer_block;
        mutable Buffer *buffer;
        mutable Mask dirty;
+       std::string debug_name;
 
 public:
        ProgramData(const Program * = 0);
@@ -252,6 +253,8 @@ public:
        /** Applies uniform blocks for the currently bound program, creating them
        if needed. */
        void apply() const;
+
+       void set_debug_name(const std::string &);
 };
 
 template<typename T, unsigned N>