diff options
author | Dave Parks <davep@lindenlab.com> | 2022-06-16 16:16:53 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-06-16 16:16:53 -0500 |
commit | 18b0aa03717cd8209b6c239457bcf69f0d39ecf7 (patch) | |
tree | 7ad75cf8db7249a49b1bd55770390991c1198e7e /indra/newview/llviewertexture.cpp | |
parent | f5d66e79eec07384ef6f4fd3f516f7a9d010fb9e (diff) |
SL-17619 Add support for embedded textures to GLTF importer
Diffstat (limited to 'indra/newview/llviewertexture.cpp')
-rw-r--r-- | indra/newview/llviewertexture.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp index e3ac56d0d3..c389d2122e 100644 --- a/indra/newview/llviewertexture.cpp +++ b/indra/newview/llviewertexture.cpp @@ -287,6 +287,13 @@ LLPointer<LLViewerTexture> LLViewerTextureManager::getLocalTexture(const U32 wid return tex; } +LLViewerFetchedTexture* LLViewerTextureManager::getFetchedTexture(const LLImageRaw* raw, FTType type, bool usemipmaps) +{ + LLViewerFetchedTexture* ret = new LLViewerFetchedTexture(raw, type, usemipmaps); + gTextureList.addImage(ret, TEX_LIST_STANDARD); + return ret; +} + LLViewerFetchedTexture* LLViewerTextureManager::getFetchedTexture( const LLUUID &image_id, FTType f_type, |