diff options
author | cosmic-linden <111533034+cosmic-linden@users.noreply.github.com> | 2024-01-24 10:14:59 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 10:14:59 -0800 |
commit | c22aefafb3d05be37965361913c02568fa10adf6 (patch) | |
tree | 575757798bdf15d9c58e8e17e5f170de2e074b7a /indra/newview/llfetchedgltfmaterial.h | |
parent | 2adecc6fac9852974e44e3d58ccf2619b45642a9 (diff) | |
parent | 7b0372ac1f6191ef9216296cef2f476caadee40c (diff) |
Merge pull request #657 from secondlife/DRTVWR-592
Merge PBR terrain and put PBR terrain behind feature flag.
Diffstat (limited to 'indra/newview/llfetchedgltfmaterial.h')
-rw-r--r-- | indra/newview/llfetchedgltfmaterial.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llfetchedgltfmaterial.h b/indra/newview/llfetchedgltfmaterial.h index 2559aa46cc..3fa4619d8c 100644 --- a/indra/newview/llfetchedgltfmaterial.h +++ b/indra/newview/llfetchedgltfmaterial.h @@ -49,6 +49,7 @@ public: void bind(LLViewerTexture* media_tex = nullptr); bool isFetching() const { return mFetching; } + bool isLoaded() const { return !mFetching && mFetchSuccess; } void addTextureEntry(LLTextureEntry* te) override; void removeTextureEntry(LLTextureEntry* te) override; @@ -67,11 +68,12 @@ protected: // Lifetime management void materialBegin(); - void materialComplete(); + void materialComplete(bool success); F64 mExpectedFlusTime; // since epoch in seconds - bool mActive; - bool mFetching; + bool mActive = true; + bool mFetching = false; + bool mFetchSuccess = false; std::vector<std::function<void()>> materialCompleteCallbacks; }; |