aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llstartup.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:38 -0500
committerJacek Antonelli2008-08-15 23:45:38 -0500
commitd7f00c03e236098b10ad5e30d35a0f159eb17255 (patch)
treed45c68b3a638b0545c88c1f644a6b9a689ce58e0 /linden/indra/newview/llstartup.cpp
parentSecond Life viewer sources 1.19.1.2 (diff)
downloadmeta-impy-d7f00c03e236098b10ad5e30d35a0f159eb17255.zip
meta-impy-d7f00c03e236098b10ad5e30d35a0f159eb17255.tar.gz
meta-impy-d7f00c03e236098b10ad5e30d35a0f159eb17255.tar.bz2
meta-impy-d7f00c03e236098b10ad5e30d35a0f159eb17255.tar.xz
Second Life viewer sources 1.19.1.3
Diffstat (limited to 'linden/indra/newview/llstartup.cpp')
-rw-r--r--linden/indra/newview/llstartup.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp
index c41c4ba..36809ee 100644
--- a/linden/indra/newview/llstartup.cpp
+++ b/linden/indra/newview/llstartup.cpp
@@ -293,7 +293,7 @@ void update_texture_fetch()
293} 293}
294 294
295static std::vector<std::string> sAuthUris; 295static std::vector<std::string> sAuthUris;
296static int sAuthUriNum = -1; 296static S32 sAuthUriNum = -1;
297 297
298// Returns FALSE to skip other idle processing. Should only return 298// Returns FALSE to skip other idle processing. Should only return
299// TRUE when all initialization done. 299// TRUE when all initialization done.
@@ -1007,6 +1007,7 @@ BOOL idle_startup()
1007 hashed_mac.hex_digest(hashed_mac_string); 1007 hashed_mac.hex_digest(hashed_mac_string);
1008 1008
1009 // TODO if statement here to use web_login_key 1009 // TODO if statement here to use web_login_key
1010 sAuthUriNum = llclamp(sAuthUriNum, 0, (S32)sAuthUris.size()-1);
1010 gUserAuthp->authenticate( 1011 gUserAuthp->authenticate(
1011 sAuthUris[sAuthUriNum].c_str(), 1012 sAuthUris[sAuthUriNum].c_str(),
1012 auth_method.c_str(), 1013 auth_method.c_str(),
@@ -3619,7 +3620,15 @@ void init_start_screen(S32 location_id)
3619 } 3620 }
3620 3621
3621 LLPointer<LLImageBMP> start_image_bmp = new LLImageBMP; 3622 LLPointer<LLImageBMP> start_image_bmp = new LLImageBMP;
3622 if( !start_image_bmp->load(temp_str) ) 3623
3624 // Turn off start screen to get around the occasional readback
3625 // driver bug
3626 if(!gSavedSettings.getBOOL("UseStartScreen"))
3627 {
3628 llinfos << "Bitmap load disabled" << llendl;
3629 return;
3630 }
3631 else if(!start_image_bmp->load(temp_str) )
3623 { 3632 {
3624 llinfos << "Bitmap load failed" << llendl; 3633 llinfos << "Bitmap load failed" << llendl;
3625 return; 3634 return;
@@ -3628,6 +3637,7 @@ void init_start_screen(S32 location_id)
3628 gStartImageGL = new LLImageGL(FALSE); 3637 gStartImageGL = new LLImageGL(FALSE);
3629 gStartImageWidth = start_image_bmp->getWidth(); 3638 gStartImageWidth = start_image_bmp->getWidth();
3630 gStartImageHeight = start_image_bmp->getHeight(); 3639 gStartImageHeight = start_image_bmp->getHeight();
3640
3631 LLPointer<LLImageRaw> raw = new LLImageRaw; 3641 LLPointer<LLImageRaw> raw = new LLImageRaw;
3632 if (!start_image_bmp->decode(raw, 0.0f)) 3642 if (!start_image_bmp->decode(raw, 0.0f))
3633 { 3643 {