summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-05-20 19:02:13 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2024-05-21 10:11:44 +0300
commit7ed053d9a257087b76937d750b9f2b0c96f6df38 (patch)
tree7335e1a2f43e384e265035786cddbf97ed19d700 /indra/llrender
parenta016a0a366ae244574bc58c4e6c7e5cafcfcee81 (diff)
viewer#1520 Material upload floater displays wrong upload fee
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llgltexture.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llrender/llgltexture.cpp b/indra/llrender/llgltexture.cpp
index be4fc85985..104976fcc6 100644
--- a/indra/llrender/llgltexture.cpp
+++ b/indra/llrender/llgltexture.cpp
@@ -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->getCurrentWidth();
+ mFullHeight = mGLTexturep->getCurrentHeight();
+ mComponents = mGLTexturep->getComponents();
+ setTexelsPerImage();
}
LLGLTexture::~LLGLTexture()