@@ -47,27 +47,6 @@ class D3DXRenderBase : public IRender, public pureFrame
4747 R_dsgraph::mapSorted_T mapHUDEmissive;
4848#endif
4949
50- // Runtime structures
51- xr_vector<R_dsgraph::mapNormalVS::TNode*, render_alloc<R_dsgraph::mapNormalVS::TNode*>> nrmVS;
52- #if defined(USE_DX10) || defined(USE_DX11)
53- xr_vector<R_dsgraph::mapNormalGS::TNode*, render_alloc<R_dsgraph::mapNormalGS::TNode*>> nrmGS;
54- #endif // USE_DX10
55- xr_vector<R_dsgraph::mapNormalPS::TNode*, render_alloc<R_dsgraph::mapNormalPS::TNode*>> nrmPS;
56- xr_vector<R_dsgraph::mapNormalCS::TNode*, render_alloc<R_dsgraph::mapNormalCS::TNode*>> nrmCS;
57- xr_vector<R_dsgraph::mapNormalStates::TNode*, render_alloc<R_dsgraph::mapNormalStates::TNode*>> nrmStates;
58- xr_vector<R_dsgraph::mapNormalTextures::TNode*, render_alloc<R_dsgraph::mapNormalTextures::TNode*>> nrmTextures;
59- xr_vector<R_dsgraph::mapNormalTextures::TNode*, render_alloc<R_dsgraph::mapNormalTextures::TNode*>> nrmTexturesTemp;
60-
61- xr_vector<R_dsgraph::mapMatrixVS::TNode*, render_alloc<R_dsgraph::mapMatrixVS::TNode*>> matVS;
62- #if defined(USE_DX10) || defined(USE_DX11)
63- xr_vector<R_dsgraph::mapMatrixGS::TNode*, render_alloc<R_dsgraph::mapMatrixGS::TNode*>> matGS;
64- #endif // USE_DX10
65- xr_vector<R_dsgraph::mapMatrixPS::TNode*, render_alloc<R_dsgraph::mapMatrixPS::TNode*>> matPS;
66- xr_vector<R_dsgraph::mapMatrixCS::TNode*, render_alloc<R_dsgraph::mapMatrixCS::TNode*>> matCS;
67- xr_vector<R_dsgraph::mapMatrixStates::TNode*, render_alloc<R_dsgraph::mapMatrixStates::TNode*>> matStates;
68- xr_vector<R_dsgraph::mapMatrixTextures::TNode*, render_alloc<R_dsgraph::mapMatrixTextures::TNode*>> matTextures;
69- xr_vector<R_dsgraph::mapMatrixTextures::TNode*, render_alloc<R_dsgraph::mapMatrixTextures::TNode*>> matTexturesTemp;
70-
7150 xr_vector<R_dsgraph::_LodItem, render_alloc<R_dsgraph::_LodItem>> lstLODs;
7251 xr_vector<int , render_alloc<int >> lstLODgroups;
7352 xr_vector<ISpatial*> lstRenderables;
@@ -115,20 +94,6 @@ class D3DXRenderBase : public IRender, public pureFrame
11594
11695 void r_dsgraph_destroy ()
11796 {
118- nrmVS.clear ();
119- nrmPS.clear ();
120- nrmCS.clear ();
121- nrmStates.clear ();
122- nrmTextures.clear ();
123- nrmTexturesTemp.clear ();
124-
125- matVS.clear ();
126- matPS.clear ();
127- matCS.clear ();
128- matStates.clear ();
129- matTextures.clear ();
130- matTexturesTemp.clear ();
131-
13297 lstLODs.clear ();
13398 lstLODgroups.clear ();
13499 lstRenderables.clear ();
@@ -137,10 +102,6 @@ class D3DXRenderBase : public IRender, public pureFrame
137102
138103 lstRecorded.clear ();
139104
140- // mapNormal[0].destroy ();
141- // mapNormal[1].destroy ();
142- // mapMatrix[0].destroy ();
143- // mapMatrix[1].destroy ();
144105 for (int i = 0 ; i < SHADER_PASSES_MAX; ++i)
145106 {
146107 mapNormalPasses[0 ][i].destroy ();
@@ -169,7 +130,7 @@ class D3DXRenderBase : public IRender, public pureFrame
169130 void r_dsgraph_insert_dynamic (dxRender_Visual* pVisual, Fvector& Center);
170131 void r_dsgraph_insert_static (dxRender_Visual* pVisual);
171132 // render primitives
172- void r_dsgraph_render_graph (u32 _priority, bool _clear = true );
133+ void r_dsgraph_render_graph (u32 _priority);
173134 void r_dsgraph_render_hud ();
174135 void r_dsgraph_render_hud_ui ();
175136 void r_dsgraph_render_lods (bool _setup_zb, bool _clear);
0 commit comments