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
75bdb77c
Commit
75bdb77c
authored
13 years ago
by
Xiaohong Bao
Browse files
Options
Downloads
Patches
Plain Diff
more fix for STORM-1298: Crash on startup of Second Life 2.7.1(231307)
parent
c701a0d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llviewertexturelist.cpp
+17
-0
17 additions, 0 deletions
indra/newview/llviewertexturelist.cpp
with
17 additions
and
0 deletions
indra/newview/llviewertexturelist.cpp
+
17
−
0
View file @
75bdb77c
...
@@ -281,6 +281,8 @@ void LLViewerTextureList::shutdown()
...
@@ -281,6 +281,8 @@ void LLViewerTextureList::shutdown()
mUUIDMap
.
clear
();
mUUIDMap
.
clear
();
mImageList
.
clear
();
mImageList
.
clear
();
mInitialized
=
FALSE
;
//prevent loading textures again.
}
}
void
LLViewerTextureList
::
dump
()
void
LLViewerTextureList
::
dump
()
...
@@ -328,6 +330,11 @@ LLViewerFetchedTexture* LLViewerTextureList::getImageFromFile(const std::string&
...
@@ -328,6 +330,11 @@ LLViewerFetchedTexture* LLViewerTextureList::getImageFromFile(const std::string&
LLGLenum
primary_format
,
LLGLenum
primary_format
,
const
LLUUID
&
force_id
)
const
LLUUID
&
force_id
)
{
{
if
(
!
mInitialized
)
{
return
NULL
;
}
std
::
string
full_path
=
gDirUtilp
->
findSkinnedFilename
(
"textures"
,
filename
);
std
::
string
full_path
=
gDirUtilp
->
findSkinnedFilename
(
"textures"
,
filename
);
if
(
full_path
.
empty
())
if
(
full_path
.
empty
())
{
{
...
@@ -348,6 +355,11 @@ LLViewerFetchedTexture* LLViewerTextureList::getImageFromUrl(const std::string&
...
@@ -348,6 +355,11 @@ LLViewerFetchedTexture* LLViewerTextureList::getImageFromUrl(const std::string&
LLGLenum
primary_format
,
LLGLenum
primary_format
,
const
LLUUID
&
force_id
)
const
LLUUID
&
force_id
)
{
{
if
(
!
mInitialized
)
{
return
NULL
;
}
// generate UUID based on hash of filename
// generate UUID based on hash of filename
LLUUID
new_id
;
LLUUID
new_id
;
if
(
force_id
.
notNull
())
if
(
force_id
.
notNull
())
...
@@ -407,6 +419,11 @@ LLViewerFetchedTexture* LLViewerTextureList::getImage(const LLUUID &image_id,
...
@@ -407,6 +419,11 @@ LLViewerFetchedTexture* LLViewerTextureList::getImage(const LLUUID &image_id,
LLGLenum
primary_format
,
LLGLenum
primary_format
,
LLHost
request_from_host
)
LLHost
request_from_host
)
{
{
if
(
!
mInitialized
)
{
return
NULL
;
}
// Return the image with ID image_id
// Return the image with ID image_id
// If the image is not found, creates new image and
// If the image is not found, creates new image and
// enqueues a request for transmission
// enqueues a request for transmission
...
...
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