mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-16 11:50:19 -05:00
Cleanup.
This commit is contained in:
parent
932b44fbec
commit
5eccbc7aa8
1 changed files with 0 additions and 19 deletions
|
@ -704,24 +704,6 @@ namespace bgfx { namespace gl
|
||||||
class VaoCacheRef
|
class VaoCacheRef
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
#if BX_COMPILER_MSVC >= 1900
|
|
||||||
void add(uint32_t _hash)
|
|
||||||
{
|
|
||||||
m_vaoSet.insert(stl::make_pair(_hash, _hash) );
|
|
||||||
}
|
|
||||||
|
|
||||||
void invalidate(VaoStateCache& _vaoCache)
|
|
||||||
{
|
|
||||||
for (VaoSet::iterator it = m_vaoSet.begin(), itEnd = m_vaoSet.end(); it != itEnd; ++it)
|
|
||||||
{
|
|
||||||
_vaoCache.invalidate(it->first);
|
|
||||||
}
|
|
||||||
|
|
||||||
m_vaoSet.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
typedef stl::unordered_map<uint32_t, uint32_t> VaoSet;
|
|
||||||
#else
|
|
||||||
void add(uint32_t _hash)
|
void add(uint32_t _hash)
|
||||||
{
|
{
|
||||||
m_vaoSet.insert(_hash);
|
m_vaoSet.insert(_hash);
|
||||||
|
@ -738,7 +720,6 @@ namespace bgfx { namespace gl
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef stl::unordered_set<uint32_t> VaoSet;
|
typedef stl::unordered_set<uint32_t> VaoSet;
|
||||||
#endif //
|
|
||||||
VaoSet m_vaoSet;
|
VaoSet m_vaoSet;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue