SL-19592 Fix for PBR alpha HUDs sometimes using wrong texture on OSX
parent
e154fee226
commit
e72ecda4e5
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue