if(current_state)
throw invalid_operation("Renderer::begin");
- state_stack.push_back(State());
+ state_stack.emplace_back();
current_state = &state_stack.back();
RendererBackend::begin();
break;
}
- texture_stack.push_back(BoundTexture());
+ texture_stack.emplace_back();
BoundTexture &bound_tex = texture_stack.back();
bound_tex.tag = tag;
bound_tex.texture = tex;