|
@@ -93,7 +93,7 @@ int CMeshRenderer::DrawSorted(unsigned int iIndex,const aiMatrix4x4& mWorld)
|
|
// well ... this is really funny now. We must compute their distance
|
|
// well ... this is really funny now. We must compute their distance
|
|
// from the camera. We take the average distance of a face and add it
|
|
// from the camera. We take the average distance of a face and add it
|
|
// to a map which sorts it
|
|
// to a map which sorts it
|
|
- std::map<float,unsigned int, std::greater_equal<float>> smap;
|
|
|
|
|
|
+ std::map<float,unsigned int, std::greater_equal<float> > smap;
|
|
|
|
|
|
for (unsigned int iFace = 0; iFace < pcMesh->mNumFaces;++iFace)
|
|
for (unsigned int iFace = 0; iFace < pcMesh->mNumFaces;++iFace)
|
|
{
|
|
{
|
|
@@ -120,7 +120,7 @@ int CMeshRenderer::DrawSorted(unsigned int iIndex,const aiMatrix4x4& mWorld)
|
|
uint16_t* aiIndices;
|
|
uint16_t* aiIndices;
|
|
pcHelper->piIB->Lock(0,0,(void**)&aiIndices,D3DLOCK_DISCARD);
|
|
pcHelper->piIB->Lock(0,0,(void**)&aiIndices,D3DLOCK_DISCARD);
|
|
|
|
|
|
- for (std::map<float,unsigned int, std::greater_equal<float>>::const_iterator
|
|
|
|
|
|
+ for (std::map<float,unsigned int, std::greater_equal<float> >::const_iterator
|
|
i = smap.begin();
|
|
i = smap.begin();
|
|
i != smap.end();++i)
|
|
i != smap.end();++i)
|
|
{
|
|
{
|
|
@@ -135,7 +135,7 @@ int CMeshRenderer::DrawSorted(unsigned int iIndex,const aiMatrix4x4& mWorld)
|
|
uint32_t* aiIndices;
|
|
uint32_t* aiIndices;
|
|
pcHelper->piIB->Lock(0,0,(void**)&aiIndices,D3DLOCK_DISCARD);
|
|
pcHelper->piIB->Lock(0,0,(void**)&aiIndices,D3DLOCK_DISCARD);
|
|
|
|
|
|
- for (std::map<float,unsigned int, std::greater_equal<float>>::const_iterator
|
|
|
|
|
|
+ for (std::map<float,unsigned int, std::greater_equal<float> >::const_iterator
|
|
i = smap.begin();
|
|
i = smap.begin();
|
|
i != smap.end();++i)
|
|
i != smap.end();++i)
|
|
{
|
|
{
|