viewer#1553 Local PBR materials are not applied to the terrain

meow-7.2.2
Andrey Kleshchev 2024-05-28 14:37:38 +03:00 committed by Andrey Kleshchev
parent 04c4d18f70
commit db627bc354
2 changed files with 10 additions and 0 deletions

View File

@ -49,6 +49,10 @@ LLGLTexture::LLGLTexture(const LLImageRaw* raw, bool usemipmaps)
mUseMipMaps = usemipmaps ;
// Create an empty image of the specified size and width
mGLTexturep = new LLImageGL(raw, usemipmaps) ;
mFullWidth = mGLTexturep->getWidth();
mFullHeight = mGLTexturep->getHeight();
mComponents = mGLTexturep->getComponents();
setTexelsPerImage();
}
LLGLTexture::~LLGLTexture()

View File

@ -177,6 +177,8 @@ bool LLLocalGLTFMaterial::updateSelf()
}
}
materialBegin();
materialComplete(true);
updated = true;
}
@ -201,6 +203,8 @@ bool LLLocalGLTFMaterial::updateSelf()
LLNotificationsUtil::add("LocalBitmapsUpdateFailedFinal", notif_args);
mLinkStatus = LS_BROKEN;
materialBegin();
materialComplete(false);
}
}
}
@ -218,6 +222,8 @@ bool LLLocalGLTFMaterial::updateSelf()
LLNotificationsUtil::add("LocalBitmapsUpdateFileNotFound", notif_args);
mLinkStatus = LS_BROKEN;
materialBegin();
materialComplete(false);
}
}