mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixing bgfx::weldVertices().
This commit is contained in:
parent
6e290a3c9b
commit
fb780b2f25
1 changed files with 1 additions and 7 deletions
|
@ -539,10 +539,6 @@ namespace bgfx
|
|||
|
||||
uint16_t weldVertices(uint16_t* _output, const VertexDecl& _decl, const void* _data, uint16_t _num, float _epsilon)
|
||||
{
|
||||
#if 1
|
||||
return weldVerticesRef(_output, _decl, _data, _num, _epsilon);
|
||||
#else
|
||||
// This "clever" version doesn't work as expected...
|
||||
const uint32_t hashSize = bx::uint32_nextpow2(_num);
|
||||
const uint32_t hashMask = hashSize-1;
|
||||
const float epsilonSq = _epsilon*_epsilon;
|
||||
|
@ -577,14 +573,12 @@ namespace bgfx
|
|||
if (UINT16_MAX == offset)
|
||||
{
|
||||
_output[ii] = ii;
|
||||
next[numVertices] = hashTable[hashValue];
|
||||
next[ii] = hashTable[hashValue];
|
||||
hashTable[hashValue] = ii;
|
||||
numVertices++;
|
||||
}
|
||||
}
|
||||
|
||||
return numVertices;
|
||||
#endif // 0
|
||||
}
|
||||
|
||||
} // namespace bgfx
|
||||
|
|
Loading…
Reference in a new issue