Skip to content

Commit 7683eb5

Browse files
committed
We do not need this since we are destroying arrays after use.
1 parent d690acc commit 7683eb5

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/Layers/xrRender/r__dsgraph_render.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ void D3DXRenderBase::r_dsgraph_render_graph(u32 _priority)
133133
#if defined(USE_DX10) || defined(USE_DX11)
134134
// GS setup
135135
mapNormalGS& gs = vs_it->val;
136-
gs.ssa = 0;
137136

138137
xr_vector<mapNormalGS::TNode*, render_alloc<mapNormalGS::TNode*>> nrmGS;
139138
gs.getANY_P(nrmGS);
@@ -146,8 +145,6 @@ void D3DXRenderBase::r_dsgraph_render_graph(u32 _priority)
146145
#else // USE_DX10
147146
mapNormalPS& ps = vs_it->val;
148147
#endif // USE_DX10
149-
ps.ssa = 0;
150-
151148
xr_vector<mapNormalPS::TNode*, render_alloc<mapNormalPS::TNode*>> nrmPS;
152149
ps.getANY_P(nrmPS);
153150
std::sort(nrmPS.begin(), nrmPS.end(), cmp_ps_val_ssa<mapNormalPS::TNode*>);
@@ -162,8 +159,6 @@ void D3DXRenderBase::r_dsgraph_render_graph(u32 _priority)
162159
#else
163160
mapNormalCS& cs = ps_it->val;
164161
#endif
165-
cs.ssa = 0;
166-
167162
xr_vector<mapNormalCS::TNode*, render_alloc<mapNormalCS::TNode*>> nrmCS;
168163
cs.getANY_P(nrmCS);
169164
std::sort(nrmCS.begin(), nrmCS.end(), cmp_val_ssa<mapNormalCS::TNode*>);
@@ -172,7 +167,6 @@ void D3DXRenderBase::r_dsgraph_render_graph(u32 _priority)
172167
RCache.set_Constants(cs_it->key);
173168

174169
mapNormalStates& states = cs_it->val;
175-
states.ssa = 0;
176170

177171
xr_vector<mapNormalStates::TNode*, render_alloc<mapNormalStates::TNode*>> nrmStates;
178172
states.getANY_P(nrmStates);
@@ -182,7 +176,6 @@ void D3DXRenderBase::r_dsgraph_render_graph(u32 _priority)
182176
RCache.set_States(state_it->key);
183177

184178
mapNormalTextures& tex = state_it->val;
185-
tex.ssa = 0;
186179

187180
xr_vector<mapNormalTextures::TNode*, render_alloc<mapNormalTextures::TNode*>> nrmTextures;
188181
sort_tlist<mapNormalTextures>(nrmTextures, tex);
@@ -192,7 +185,6 @@ void D3DXRenderBase::r_dsgraph_render_graph(u32 _priority)
192185
RImplementation.apply_lmaterial();
193186

194187
mapNormalItems& items = tex_it->val;
195-
items.ssa = 0;
196188

197189
std::sort(items.begin(), items.end(), cmp_ssa<_NormalItem>);
198190
for (auto &it_it : items)
@@ -238,7 +230,6 @@ void D3DXRenderBase::r_dsgraph_render_graph(u32 _priority)
238230

239231
#if defined(USE_DX10) || defined(USE_DX11)
240232
mapMatrixGS& gs = vs_id->val;
241-
gs.ssa = 0;
242233

243234
xr_vector<mapMatrixGS::TNode*, render_alloc<mapMatrixGS::TNode*>> matGS;
244235
gs.getANY_P(matGS);
@@ -251,8 +242,6 @@ void D3DXRenderBase::r_dsgraph_render_graph(u32 _priority)
251242
#else // USE_DX10
252243
mapMatrixPS& ps = vs_id->val;
253244
#endif // USE_DX10
254-
ps.ssa = 0;
255-
256245
xr_vector<mapMatrixPS::TNode *, render_alloc<mapMatrixPS::TNode *>> matPS;
257246
ps.getANY_P(matPS);
258247
std::sort(matPS.begin(), matPS.end(), cmp_ps_val_ssa<mapMatrixPS::TNode *>);
@@ -267,8 +256,6 @@ void D3DXRenderBase::r_dsgraph_render_graph(u32 _priority)
267256
#else
268257
mapMatrixCS& cs = ps_it->val;
269258
#endif
270-
cs.ssa = 0;
271-
272259
xr_vector<mapMatrixCS::TNode*, render_alloc<mapMatrixCS::TNode*>> matCS;
273260
cs.getANY_P(matCS);
274261
std::sort(matCS.begin(), matCS.end(), cmp_val_ssa<mapMatrixCS::TNode*>);
@@ -277,7 +264,6 @@ void D3DXRenderBase::r_dsgraph_render_graph(u32 _priority)
277264
RCache.set_Constants(cs_it->key);
278265

279266
mapMatrixStates& states = cs_it->val;
280-
states.ssa = 0;
281267

282268
xr_vector<mapMatrixStates::TNode*, render_alloc<mapMatrixStates::TNode*>> matStates;
283269
states.getANY_P(matStates);
@@ -287,7 +273,6 @@ void D3DXRenderBase::r_dsgraph_render_graph(u32 _priority)
287273
RCache.set_States(state_it->key);
288274

289275
mapMatrixTextures& tex = state_it->val;
290-
tex.ssa = 0;
291276

292277
xr_vector<mapMatrixTextures::TNode*, render_alloc<mapMatrixTextures::TNode*>> matTextures;
293278
sort_tlist<mapMatrixTextures>(matTextures, tex);
@@ -297,7 +282,6 @@ void D3DXRenderBase::r_dsgraph_render_graph(u32 _priority)
297282
RImplementation.apply_lmaterial();
298283

299284
mapMatrixItems& items = tex_it->val;
300-
items.ssa = 0;
301285

302286
std::sort(items.begin(), items.end(), cmp_ssa<_MatrixItem>);
303287
for (auto &ni_it : items)

0 commit comments

Comments
 (0)