]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/sequence.cpp
Some tweaks to vector component handling
[libs/gl.git] / source / render / sequence.cpp
index 6c98b4023c293db017d8b43dcc3c9619dbeeacc4..e2986a249904a8c1fae136c6ef90e21a6d5c26bb 100644 (file)
@@ -12,7 +12,7 @@ using namespace std;
 namespace Msp {
 namespace GL {
 
-Tag Sequence::noclear_tag = "noclear";
+const Tag Sequence::noclear_tag = "noclear";
 
 Sequence::Sequence(unsigned w, unsigned h, const FrameFormat &f):
        width(w),
@@ -65,7 +65,7 @@ void Sequence::set_clear_stencil(int s)
 
 Sequence::Step &Sequence::add_step(Tag tag, Renderable &r)
 {
-       steps.push_back(Step(tag, &r));
+       steps.emplace_back(tag, &r);
        return steps.back();
 }