Skip to content

Commit

Permalink
Returned detail shadows
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Mar 31, 2019
1 parent 32b0465 commit 573cf94
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 10 additions & 0 deletions cs/engine/layers/xrRender/DetailManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,16 @@ extern ECORE_API float r_ssaDISCARD;

void CDetailManager::UpdateVisibleM()
{
// Clean up
for (int i = 0; i != 3; i++)
{
vis_list::iterator it = m_visibles[i].begin();
vis_list::iterator ite = m_visibles[i].end();

for (; it != ite; ++it)
it->clear_not_free();
}

Fvector EYE = Device.vCameraPosition;

CFrustum View;
Expand Down
2 changes: 0 additions & 2 deletions cs/engine/layers/xrRender/DetailManager_VS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,6 @@ void CDetailManager::hw_Render_dump (ref_constant x_array, u32 var_id, u32 lod_
RCache.Render (D3DPT_TRIANGLELIST,vOffset,0,dwCNT_verts,iOffset,dwCNT_prims);
RCache.stat.r.s_details.add (dwCNT_verts);
}
// Clean up
vis.clear_not_free ();
}
vOffset += hw_BatchSize * Object.number_vertices;
iOffset += hw_BatchSize * Object.number_indices;
Expand Down
2 changes: 0 additions & 2 deletions cs/engine/layers/xrRenderDX10/dx10DetailManager_VS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,6 @@ void CDetailManager::hw_Render_dump(const Fvector4 &consts, const Fvector4 &wave
}

}
// Clean up
vis.clear_not_free ();
}
vOffset += hw_BatchSize * Object.number_vertices;
iOffset += hw_BatchSize * Object.number_indices;
Expand Down

0 comments on commit 573cf94

Please sign in to comment.