diff options
author | Mimika Oh | 2010-10-03 10:57:00 +0100 |
---|---|---|
committer | Jacek Antonelli | 2010-10-03 10:45:40 -0500 |
commit | 912cc1c932be9eb396445bd4a661d9275f1fd229 (patch) | |
tree | 186f2b532579b8de98b66420f4f59458d4612478 /linden/indra | |
parent | Added safety checks for when snapshot window goes out of sync with the main U... (diff) | |
download | meta-impy-912cc1c932be9eb396445bd4a661d9275f1fd229.zip meta-impy-912cc1c932be9eb396445bd4a661d9275f1fd229.tar.gz meta-impy-912cc1c932be9eb396445bd4a661d9275f1fd229.tar.bz2 meta-impy-912cc1c932be9eb396445bd4a661d9275f1fd229.tar.xz |
Allow build under Mac OS X 10.6 SDK by removing deprecated things.
Incorporated Snowglobe changesets:
http://svn.secondlife.com/trac/linden/changeset/2823
http://svn.secondlife.com/trac/linden/changeset/2757
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/newview/llappviewermacosx.cpp | 20 | ||||
-rw-r--r-- | linden/indra/newview/llvoavatar.cpp | 3 |
2 files changed, 11 insertions, 12 deletions
diff --git a/linden/indra/newview/llappviewermacosx.cpp b/linden/indra/newview/llappviewermacosx.cpp index 3cd0836..1f5b7dc 100644 --- a/linden/indra/newview/llappviewermacosx.cpp +++ b/linden/indra/newview/llappviewermacosx.cpp | |||
@@ -326,7 +326,7 @@ void LLAppViewerMacOSX::handleCrashReporting(bool reportFreeze) | |||
326 | // *NOTE:Mani A better way - make a copy of the data that the crash reporter will send | 326 | // *NOTE:Mani A better way - make a copy of the data that the crash reporter will send |
327 | // and let SL go about its business. This way makes the mac work like windows and linux | 327 | // and let SL go about its business. This way makes the mac work like windows and linux |
328 | // and is the smallest patch for the issue. | 328 | // and is the smallest patch for the issue. |
329 | sCrashReporterIsRunning = true; | 329 | sCrashReporterIsRunning = false; |
330 | ProcessSerialNumber o_psn; | 330 | ProcessSerialNumber o_psn; |
331 | 331 | ||
332 | static EventHandlerRef sCarbonEventsRef = NULL; | 332 | static EventHandlerRef sCarbonEventsRef = NULL; |
@@ -355,17 +355,15 @@ void LLAppViewerMacOSX::handleCrashReporting(bool reportFreeze) | |||
355 | os_result = LSOpenApplication(&appParams, &o_psn); | 355 | os_result = LSOpenApplication(&appParams, &o_psn); |
356 | 356 | ||
357 | if(os_result >= 0) | 357 | if(os_result >= 0) |
358 | { | 358 | { |
359 | EventRecord evt; | 359 | sCrashReporterIsRunning = true; |
360 | while(sCrashReporterIsRunning) | 360 | } |
361 | { | ||
362 | while(WaitNextEvent(osMask, &evt, 0, NULL)) | ||
363 | { | ||
364 | // null op!?! | ||
365 | } | ||
366 | } | ||
367 | } | ||
368 | 361 | ||
362 | while(sCrashReporterIsRunning) | ||
363 | { | ||
364 | RunApplicationEventLoop(); | ||
365 | } | ||
366 | |||
369 | // Re-install the apps quit handler. | 367 | // Re-install the apps quit handler. |
370 | AEInstallEventHandler(kCoreEventClass, | 368 | AEInstallEventHandler(kCoreEventClass, |
371 | kAEQuitApplication, | 369 | kAEQuitApplication, |
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp index c8b26be..5be5650 100644 --- a/linden/indra/newview/llvoavatar.cpp +++ b/linden/indra/newview/llvoavatar.cpp | |||
@@ -7410,7 +7410,8 @@ LLGLuint LLVOAvatar::getScratchTexName( LLGLenum format, U32* texture_bytes ) | |||
7410 | { | 7410 | { |
7411 | case GL_LUMINANCE: components = 1; internal_format = GL_LUMINANCE8; break; | 7411 | case GL_LUMINANCE: components = 1; internal_format = GL_LUMINANCE8; break; |
7412 | case GL_ALPHA: components = 1; internal_format = GL_ALPHA8; break; | 7412 | case GL_ALPHA: components = 1; internal_format = GL_ALPHA8; break; |
7413 | case GL_COLOR_INDEX: components = 1; internal_format = GL_COLOR_INDEX8_EXT; break; | 7413 | // Deprecated. See http://svn.secondlife.com/trac/linden/changeset/2757 |
7414 | // case GL_COLOR_INDEX: components = 1; internal_format = GL_COLOR_INDEX8_EXT; break; | ||
7414 | case GL_LUMINANCE_ALPHA: components = 2; internal_format = GL_LUMINANCE8_ALPHA8; break; | 7415 | case GL_LUMINANCE_ALPHA: components = 2; internal_format = GL_LUMINANCE8_ALPHA8; break; |
7415 | case GL_RGB: components = 3; internal_format = GL_RGB8; break; | 7416 | case GL_RGB: components = 3; internal_format = GL_RGB8; break; |
7416 | case GL_RGBA: components = 4; internal_format = GL_RGBA8; break; | 7417 | case GL_RGBA: components = 4; internal_format = GL_RGBA8; break; |