Fix for broken local avatar texture bakes by Rye Mutt (Alchemy Viewer)
parent
02bbb8e046
commit
fff4e698f0
|
|
@ -253,7 +253,7 @@ U32 LLViewerJointMesh::drawShape( F32 pixelArea, BOOL first_pass, BOOL is_dummy)
|
|||
//----------------------------------------------------------------
|
||||
llassert( !(mTexture.notNull() && mLayerSet) ); // mutually exclusive
|
||||
|
||||
LLTexUnit::eTextureAddressMode old_mode = LLTexUnit::TAM_WRAP;
|
||||
// LLTexUnit::eTextureAddressMode old_mode = LLTexUnit::TAM_WRAP; // <FS> Rye Mutt's broken local texture rendering fix
|
||||
LLViewerTexLayerSet *layerset = dynamic_cast<LLViewerTexLayerSet*>(mLayerSet);
|
||||
if (mTestImageName)
|
||||
{
|
||||
|
|
@ -283,12 +283,14 @@ U32 LLViewerJointMesh::drawShape( F32 pixelArea, BOOL first_pass, BOOL is_dummy)
|
|||
else
|
||||
if ( !is_dummy && mTexture.notNull() )
|
||||
{
|
||||
if(mTexture->hasGLTexture())
|
||||
{
|
||||
old_mode = mTexture->getAddressMode();
|
||||
}
|
||||
// <FS> Rye Mutt's broken local texture rendering fix
|
||||
//if(mTexture->hasGLTexture())
|
||||
//{
|
||||
// old_mode = mTexture->getAddressMode();
|
||||
//}
|
||||
// </FS>
|
||||
gGL.getTexUnit(diffuse_channel)->bind(mTexture);
|
||||
gGL.getTexUnit(diffuse_channel)->setTextureAddressMode(LLTexUnit::TAM_CLAMP);
|
||||
//gGL.getTexUnit(diffuse_channel)->setTextureAddressMode(LLTexUnit::TAM_CLAMP); // <FS> Rye Mutt's broken local texture rendering fix
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -341,11 +343,13 @@ U32 LLViewerJointMesh::drawShape( F32 pixelArea, BOOL first_pass, BOOL is_dummy)
|
|||
gGL.getTexUnit(diffuse_channel)->setTextureBlendType(LLTexUnit::TB_MULT);
|
||||
}
|
||||
|
||||
if (mTexture.notNull() && !is_dummy)
|
||||
{
|
||||
gGL.getTexUnit(diffuse_channel)->bind(mTexture);
|
||||
gGL.getTexUnit(diffuse_channel)->setTextureAddressMode(old_mode);
|
||||
}
|
||||
// <FS> Rye Mutt's broken local texture rendering fix
|
||||
//if (mTexture.notNull() && !is_dummy)
|
||||
//{
|
||||
// gGL.getTexUnit(diffuse_channel)->bind(mTexture);
|
||||
// gGL.getTexUnit(diffuse_channel)->setTextureAddressMode(old_mode);
|
||||
//}
|
||||
// </FS>
|
||||
|
||||
return triangle_count;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,7 +60,10 @@ LLViewerTexLayerSetBuffer::LLViewerTexLayerSetBuffer(LLTexLayerSet* const owner,
|
|||
S32 width, S32 height) :
|
||||
// ORDER_LAST => must render these after the hints are created.
|
||||
LLTexLayerSetBuffer(owner),
|
||||
LLViewerDynamicTexture( width, height, 4, LLViewerDynamicTexture::ORDER_LAST, TRUE ),
|
||||
// <FS> Rye Mutt's broken local texture rendering fix
|
||||
//LLViewerDynamicTexture( width, height, 4, LLViewerDynamicTexture::ORDER_LAST, TRUE ),
|
||||
LLViewerDynamicTexture( width, height, 4, LLViewerDynamicTexture::ORDER_LAST, FALSE ),
|
||||
// </FS>
|
||||
// <FS:Ansariel> [Legacy Bake]
|
||||
mUploadPending(FALSE), // Not used for any logic here, just to sync sending of updates
|
||||
mNeedsUpload(FALSE),
|
||||
|
|
|
|||
Loading…
Reference in New Issue