Use wgl shared context lists to avoid re-creating gl context from scratch.

This commit is contained in:
Shyotl
2019-08-07 23:02:34 -05:00
parent d2b28f60ff
commit f09b828217
13 changed files with 91 additions and 47 deletions

View File

@@ -978,6 +978,22 @@ void LLPipeline::refreshCachedSettings()
&& gGLManager.mHasOcclusionQuery) ? 2 : 0;
}
void LLPipeline::releaseOcclusionBuffers()
{
for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin();
iter != LLWorld::getInstance()->getRegionList().end(); ++iter)
{
LLViewerRegion* region = *iter;
for (U32 i = 0; i < LLViewerRegion::NUM_PARTITIONS; i++)
{
LLSpatialPartition* part = region->getSpatialPartition(i);
if (part)
{
part->resetVertexBuffers();
}
}
}
}
void LLPipeline::releaseVertexBuffers()
{
mCubeVB = NULL;