diff options
author | Dave Parks <davep@lindenlab.com> | 2022-05-16 17:21:08 +0000 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-05-16 17:21:08 +0000 |
commit | 3400e5fd302c0d9dea6386c4d5bf38876f2cc287 (patch) | |
tree | e791863ef5dabe1a6fb6cba59771607912362ab7 /indra/llrender/llcubemap.cpp | |
parent | 6c1fdac9df52ff920860066905a08db748ab0d95 (diff) |
SL-17284 Reflection probe tuning and optimization take 1
Diffstat (limited to 'indra/llrender/llcubemap.cpp')
-rw-r--r-- | indra/llrender/llcubemap.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/indra/llrender/llcubemap.cpp b/indra/llrender/llcubemap.cpp index 6d872d0763..473447ad72 100644 --- a/indra/llrender/llcubemap.cpp +++ b/indra/llrender/llcubemap.cpp @@ -219,13 +219,17 @@ void LLCubeMap::initEnvironmentMap(const std::vector<LLPointer<LLImageRaw> >& ra void LLCubeMap::generateMipMaps() { + LL_PROFILE_ZONE_SCOPED_CATEGORY_TEXTURE; + mImages[0]->setUseMipMaps(TRUE); mImages[0]->setHasMipMaps(TRUE); enableTexture(0); bind(); - mImages[0]->setFilteringOption(LLTexUnit::TFO_ANISOTROPIC); - glEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS); - glGenerateMipmap(GL_TEXTURE_CUBE_MAP); + mImages[0]->setFilteringOption(LLTexUnit::TFO_BILINEAR); + { + LL_PROFILE_ZONE_NAMED_CATEGORY_TEXTURE("cmgmm - glGenerateMipmap"); + glGenerateMipmap(GL_TEXTURE_CUBE_MAP); + } gGL.getTexUnit(0)->disable(); disable(); } |