Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
3c564f5a
Commit
3c564f5a
authored
4 years ago
by
Andrey Lihatskiy
Browse files
Options
Downloads
Patches
Plain Diff
SL-11625 Fix for skewed baked texture offset values
parent
b8127f80
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/contributions.txt
+2
-0
2 additions, 0 deletions
doc/contributions.txt
indra/newview/llviewerjointmesh.cpp
+1
-15
1 addition, 15 deletions
indra/newview/llviewerjointmesh.cpp
indra/newview/llviewertexlayer.cpp
+1
-1
1 addition, 1 deletion
indra/newview/llviewertexlayer.cpp
with
4 additions
and
16 deletions
doc/contributions.txt
+
2
−
0
View file @
3c564f5a
...
...
@@ -1303,6 +1303,7 @@ Shyotl Kuhr
MAINT-2334
MAINT-6913
STORM-2143
SL-11625
Siana Gearz
STORM-960
STORM-1088
...
...
@@ -1342,6 +1343,7 @@ Sovereign Engineer
MAINT-7343
SL-11079
OPEN-343
SL-11625
SpacedOut Frye
VWR-34
VWR-45
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llviewerjointmesh.cpp
+
1
−
15
View file @
3c564f5a
...
...
@@ -253,7 +253,6 @@ U32 LLViewerJointMesh::drawShape( F32 pixelArea, BOOL first_pass, BOOL is_dummy)
//----------------------------------------------------------------
llassert
(
!
(
mTexture
.
notNull
()
&&
mLayerSet
)
);
// mutually exclusive
LLTexUnit
::
eTextureAddressMode
old_mode
=
LLTexUnit
::
TAM_WRAP
;
LLViewerTexLayerSet
*
layerset
=
dynamic_cast
<
LLViewerTexLayerSet
*>
(
mLayerSet
);
if
(
mTestImageName
)
{
...
...
@@ -280,22 +279,15 @@ U32 LLViewerJointMesh::drawShape( F32 pixelArea, BOOL first_pass, BOOL is_dummy)
gGL
.
getTexUnit
(
diffuse_channel
)
->
bind
(
LLViewerTextureManager
::
getFetchedTexture
(
IMG_DEFAULT
));
}
}
else
if
(
!
is_dummy
&&
mTexture
.
notNull
()
)
else
if
(
!
is_dummy
&&
mTexture
.
notNull
()
)
{
if
(
mTexture
->
hasGLTexture
())
{
old_mode
=
mTexture
->
getAddressMode
();
}
gGL
.
getTexUnit
(
diffuse_channel
)
->
bind
(
mTexture
);
gGL
.
getTexUnit
(
diffuse_channel
)
->
setTextureAddressMode
(
LLTexUnit
::
TAM_CLAMP
);
}
else
{
gGL
.
getTexUnit
(
diffuse_channel
)
->
bind
(
LLViewerTextureManager
::
getFetchedTexture
(
IMG_DEFAULT
));
}
U32
mask
=
sRenderMask
;
U32
start
=
mMesh
->
mFaceVertexOffset
;
...
...
@@ -341,12 +333,6 @@ 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
);
}
return
triangle_count
;
}
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llviewertexlayer.cpp
+
1
−
1
View file @
3c564f5a
...
...
@@ -54,7 +54,7 @@ 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
),
LLViewerDynamicTexture
(
width
,
height
,
4
,
LLViewerDynamicTexture
::
ORDER_LAST
,
FALSE
),
mNeedsUpdate
(
TRUE
),
mNumLowresUpdates
(
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment