@@ -214,8 +214,8 @@ void CEngineAPI::CreateRendererList()
214214 if (GEnv.isDedicatedServer )
215215 {
216216 R_ASSERT2 (hRenderR1->exist (), " Dedicated server needs xrRender_R1 to work" );
217- modes.push_back (xr_token (" renderer_r1" , 0 ));
218- modes.push_back (xr_token (nullptr , -1 ));
217+ modes.emplace_back (xr_token (" renderer_r1" , 0 ));
218+ modes.emplace_back (xr_token (nullptr , -1 ));
219219 vid_quality_token = std::move (modes);
220220 return ;
221221 }
@@ -236,41 +236,41 @@ void CEngineAPI::CreateRendererList()
236236
237237 if (hRenderR1->exist ())
238238 {
239- modes.push_back (xr_token (" renderer_r1" , 0 ));
239+ modes.emplace_back (xr_token (" renderer_r1" , 0 ));
240240 }
241241
242242 if (hRenderR2->exist ())
243243 {
244- modes.push_back (xr_token (" renderer_r2a" , 1 ));
245- modes.push_back (xr_token (" renderer_r2" , 2 ));
244+ modes.emplace_back (xr_token (" renderer_r2a" , 1 ));
245+ modes.emplace_back (xr_token (" renderer_r2" , 2 ));
246246 if (GEnv.CheckR2 && GEnv.CheckR2 ())
247- modes.push_back (xr_token (" renderer_r2.5" , 3 ));
247+ modes.emplace_back (xr_token (" renderer_r2.5" , 3 ));
248248 }
249249
250250 if (hRenderR3->exist ())
251251 {
252252 if (GEnv.CheckR3 && GEnv.CheckR3 ())
253- modes.push_back (xr_token (" renderer_r3" , 4 ));
253+ modes.emplace_back (xr_token (" renderer_r3" , 4 ));
254254 else
255255 hRenderR3->close ();
256256 }
257257
258258 if (hRenderR4->exist ())
259259 {
260260 if (GEnv.CheckR4 && GEnv.CheckR4 ())
261- modes.push_back (xr_token (" renderer_r4" , 5 ));
261+ modes.emplace_back (xr_token (" renderer_r4" , 5 ));
262262 else
263263 hRenderR4->close ();
264264 }
265265
266266 if (hRenderRGL->exist ())
267267 {
268268 if (GEnv.CheckRGL && GEnv.CheckRGL ())
269- modes.push_back (xr_token (" renderer_gl" , 6 ));
269+ modes.emplace_back (xr_token (" renderer_gl" , 6 ));
270270 else
271271 hRenderRGL->close ();
272272 }
273- modes.push_back (xr_token (nullptr , -1 ));
273+ modes.emplace_back (xr_token (nullptr , -1 ));
274274
275275 Msg (" Available render modes[%d]:" , modes.size ());
276276 for (auto & mode : modes)
0 commit comments