mirror of
https://github.com/FirestormViewer/phoenix-firestorm.git
synced 2026-08-14 00:48:30 +00:00
p#124 Fix wrong max image size for model upload
This commit is contained in:
@@ -1488,7 +1488,9 @@ bool LLViewerFetchedTexture::preCreateTexture(S32 usename/*= 0*/)
|
||||
// from local images, but this might become unsafe in case of changes to fetcher
|
||||
if (mBoostLevel == BOOST_PREVIEW)
|
||||
{
|
||||
mRawImage->biasedScaleToPowerOfTwo(1024);
|
||||
// A local file with a preview flag likely means mesh's texture upload
|
||||
// which should follow normal upload scaling rules
|
||||
mRawImage->biasedScaleToPowerOfTwo(LLViewerFetchedTexture::MAX_IMAGE_SIZE_DEFAULT);
|
||||
}
|
||||
else
|
||||
{ // leave black border, do not scale image content
|
||||
|
||||
Reference in New Issue
Block a user