Skip to content

Commit f1f33b6

Browse files
committed
add 2k bake support
1 parent 63041b0 commit f1f33b6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

indra/llappearanceutility/llprocesstexture.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,13 @@ void LLProcessTexture::init()
167167
}
168168
else
169169
{
170-
if ((maxTextureDecodedWidth > 512) || (maxTextureDecodedHeight > 512))
170+
// optimization: maybe we could use maxTextureDecodedWidth and
171+
// maxTextureDecodedHeight for new LLBakingWindow below?
172+
if ((maxTextureDecodedWidth > 1024) || (maxTextureDecodedHeight > 1024))
173+
{
174+
mBakeSize = 2048;
175+
}
176+
else if ((maxTextureDecodedWidth > 512) || (maxTextureDecodedHeight > 512))
171177
{
172178
mBakeSize = 1024;
173179
}

0 commit comments

Comments
 (0)