Skip to content
Snippets Groups Projects
Commit e72ecda4 authored by David Parks's avatar David Parks
Browse files

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

parent e154fee2
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment