SL-19592 Fix for PBR alpha HUDs sometimes using wrong texture on OSX

master
Dave Parks 2023-10-31 16:06:51 -05:00
parent e154fee226
commit e72ecda4e5
1 changed files with 2 additions and 2 deletions

View File

@ -83,11 +83,11 @@ void LLFetchedGLTFMaterial::bind(LLViewerTexture* media_tex)
if (baseColorTex != nullptr)
{
gGL.getTexUnit(0)->bindFast(baseColorTex);
shader->bindTexture(LLShaderMgr::DIFFUSE_MAP, baseColorTex);
}
else
{
gGL.getTexUnit(0)->bindFast(LLViewerFetchedTexture::sWhiteImagep);
shader->bindTexture(LLShaderMgr::DIFFUSE_MAP, LLViewerFetchedTexture::sWhiteImagep);
}
F32 base_color_packed[8];