Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
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
Alchemy Viewer
Alchemy Viewer
Commits
d9ff1c28
Commit
d9ff1c28
authored
14 years ago
by
Xiaohong Bao
Browse files
Options
Downloads
Patches
Plain Diff
EXT-7500: FIXED: Texture Jamming problems with http texture off
parent
0ba75fe2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llpreviewtexture.cpp
+4
-2
4 additions, 2 deletions
indra/newview/llpreviewtexture.cpp
indra/newview/llpreviewtexture.h
+4
-4
4 additions, 4 deletions
indra/newview/llpreviewtexture.h
with
8 additions
and
6 deletions
indra/newview/llpreviewtexture.cpp
+
4
−
2
View file @
d9ff1c28
...
...
@@ -75,7 +75,8 @@ LLPreviewTexture::LLPreviewTexture(const LLSD& key)
mLastWidth
(
0
),
mAspectRatio
(
0.
f
),
mPreviewToSave
(
FALSE
),
mImage
(
NULL
)
mImage
(
NULL
),
mImageOldBoostLevel
(
LLViewerTexture
::
BOOST_NONE
)
{
updateImageID
();
if
(
key
.
has
(
"save_as"
))
...
...
@@ -93,7 +94,7 @@ LLPreviewTexture::~LLPreviewTexture()
{
getWindow
()
->
decBusyCount
();
}
mImage
->
setBoostLevel
(
mImageOldBoostLevel
);
mImage
=
NULL
;
}
...
...
@@ -543,6 +544,7 @@ void LLPreviewTexture::onAspectRatioCommit(LLUICtrl* ctrl, void* userdata)
void
LLPreviewTexture
::
loadAsset
()
{
mImage
=
LLViewerTextureManager
::
getFetchedTexture
(
mImageID
,
MIPMAP_TRUE
,
LLViewerTexture
::
BOOST_NONE
,
LLViewerTexture
::
LOD_TEXTURE
);
mImageOldBoostLevel
=
mImage
->
getBoostLevel
();
mImage
->
setBoostLevel
(
LLViewerTexture
::
BOOST_PREVIEW
);
mImage
->
forceToSaveRawImage
(
0
)
;
mAssetStatus
=
PREVIEW_ASSET_LOADING
;
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llpreviewtexture.h
+
4
−
4
View file @
d9ff1c28
...
...
@@ -82,9 +82,10 @@ class LLPreviewTexture : public LLPreview
void
updateDimensions
();
LLUUID
mImageID
;
LLPointer
<
LLViewerFetchedTexture
>
mImage
;
BOOL
mLoadingFullImage
;
S32
mImageOldBoostLevel
;
std
::
string
mSaveFileName
;
LLFrameTimer
mSavedFileTimer
;
BOOL
mLoadingFullImage
;
BOOL
mShowKeepDiscard
;
BOOL
mCopyToInv
;
...
...
@@ -94,11 +95,10 @@ class LLPreviewTexture : public LLPreview
// This is stored off in a member variable, because the save-as
// button and drag and drop functionality need to know.
BOOL
mIsCopyable
;
BOOL
mUpdateDimensions
;
S32
mLastHeight
;
S32
mLastWidth
;
F32
mAspectRatio
;
BOOL
mUpdateDimensions
;
F32
mAspectRatio
;
LLLoadedCallbackEntry
::
source_callback_list_t
mCallbackTextureList
;
};
...
...
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