mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 05:07:43 +00:00
Proper handling for persistently resident resources
This commit is contained in:
@@ -32,6 +32,12 @@ std::shared_ptr<CGuiWidget> CAuiImagePane::Create(CGuiFrame* frame, CInputStream
|
||||
return ret;
|
||||
}
|
||||
|
||||
void CAuiImagePane::Reset(ETraversalMode mode) {
|
||||
xc8_tex0 = CAssetId();
|
||||
xb8_tex0Tok = TLockedToken<CTexture>();
|
||||
CGuiWidget::Reset(mode);
|
||||
}
|
||||
|
||||
void CAuiImagePane::Update(float dt) {
|
||||
xd0_uvBias0.x() = std::fmod(xd0_uvBias0.x(), 1.f);
|
||||
xd0_uvBias0.y() = std::fmod(xd0_uvBias0.y(), 1.f);
|
||||
|
||||
Reference in New Issue
Block a user