X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Frender%2Frenderer.cpp;h=45ad120045397de5848e4cecfe1968f39e83433b;hp=58a56ff2f2d105e5213e9b6a6cd837ea68f06e0e;hb=5871764de7aa23d2c40cac03ad9d07088fb57e06;hpb=394b57279ff26781bfbba6d6f2b8ee1a25877e23 diff --git a/source/render/renderer.cpp b/source/render/renderer.cpp index 58a56ff2..45ad1200 100644 --- a/source/render/renderer.cpp +++ b/source/render/renderer.cpp @@ -32,7 +32,7 @@ void Renderer::begin() if(current_state) throw invalid_operation("Renderer::begin"); - state_stack.push_back(State()); + state_stack.emplace_back(); current_state = &state_stack.back(); RendererBackend::begin(); @@ -163,7 +163,7 @@ void Renderer::set_texture(Tag tag, const Texture *tex, const Sampler *samp) break; } - texture_stack.push_back(BoundTexture()); + texture_stack.emplace_back(); BoundTexture &bound_tex = texture_stack.back(); bound_tex.tag = tag; bound_tex.texture = tex;