diff options
author | Tom Grimshaw | 2010-06-08 17:34:15 +0100 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:43:37 -0500 |
commit | 38158f663774a59cffb39ea0b9549a3855ed6749 (patch) | |
tree | 4c81287783b7be77746e6c75c934b874a6b8cb2e | |
parent | Chatbar gestures tooltip should say something useful (diff) | |
download | meta-impy-38158f663774a59cffb39ea0b9549a3855ed6749.zip meta-impy-38158f663774a59cffb39ea0b9549a3855ed6749.tar.gz meta-impy-38158f663774a59cffb39ea0b9549a3855ed6749.tar.bz2 meta-impy-38158f663774a59cffb39ea0b9549a3855ed6749.tar.xz |
Implement UseKDUIfAvailable setting to specify if we will allow the viewer to use the llkdu library if it exists
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llimage/llimage.cpp | 7 | ||||
-rw-r--r-- | linden/indra/llimage/llimage.h | 2 | ||||
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 11 | ||||
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 2 |
4 files changed, 18 insertions, 4 deletions
diff --git a/linden/indra/llimage/llimage.cpp b/linden/indra/llimage/llimage.cpp index db983fb..b59c51b 100644 --- a/linden/indra/llimage/llimage.cpp +++ b/linden/indra/llimage/llimage.cpp | |||
@@ -55,10 +55,13 @@ std::string LLImage::sLastErrorMessage; | |||
55 | LLMutex* LLImage::sMutex = NULL; | 55 | LLMutex* LLImage::sMutex = NULL; |
56 | 56 | ||
57 | //static | 57 | //static |
58 | void LLImage::initClass() | 58 | void LLImage::initClass(const bool useDSO) |
59 | { | 59 | { |
60 | sMutex = new LLMutex(NULL); | 60 | sMutex = new LLMutex(NULL); |
61 | LLImageJ2C::openDSO(); | 61 | if (useDSO) |
62 | { | ||
63 | LLImageJ2C::openDSO(); | ||
64 | } | ||
62 | } | 65 | } |
63 | 66 | ||
64 | //static | 67 | //static |
diff --git a/linden/indra/llimage/llimage.h b/linden/indra/llimage/llimage.h index 102e779..d01ae72 100644 --- a/linden/indra/llimage/llimage.h +++ b/linden/indra/llimage/llimage.h | |||
@@ -82,7 +82,7 @@ typedef enum e_image_codec | |||
82 | class LLImage | 82 | class LLImage |
83 | { | 83 | { |
84 | public: | 84 | public: |
85 | static void initClass(); | 85 | static void initClass(const bool useDSO); |
86 | static void cleanupClass(); | 86 | static void cleanupClass(); |
87 | 87 | ||
88 | static const std::string& getLastError(); | 88 | static const std::string& getLastError(); |
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index c1ed2b4..aa6b1fa 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -674,6 +674,17 @@ | |||
674 | <key>Value</key> | 674 | <key>Value</key> |
675 | <string>f54a0c32-3cd1-d49a-5b4f-7b792bebc204</string> | 675 | <string>f54a0c32-3cd1-d49a-5b4f-7b792bebc204</string> |
676 | </map> | 676 | </map> |
677 | <key>UseKDUIfAvailable</key> | ||
678 | <map> | ||
679 | <key>Comment</key> | ||
680 | <string>Enable KDU DSO</string> | ||
681 | <key>Persist</key> | ||
682 | <integer>1</integer> | ||
683 | <key>Type</key> | ||
684 | <string>Boolean</string> | ||
685 | <key>Value</key> | ||
686 | <integer>1</integer> | ||
687 | </map> | ||
677 | <key>VerticalIMTabs</key> | 688 | <key>VerticalIMTabs</key> |
678 | <map> | 689 | <map> |
679 | <key>Comment</key> | 690 | <key>Comment</key> |
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index 0b09d00..ab4157f 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -1550,7 +1550,7 @@ bool LLAppViewer::initThreads() | |||
1550 | LLAppViewer::sImageDecodeThread = new LLImageDecodeThread(enable_threads && true); | 1550 | LLAppViewer::sImageDecodeThread = new LLImageDecodeThread(enable_threads && true); |
1551 | LLAppViewer::sTextureCache = new LLTextureCache(enable_threads && true); | 1551 | LLAppViewer::sTextureCache = new LLTextureCache(enable_threads && true); |
1552 | LLAppViewer::sTextureFetch = new LLTextureFetch(LLAppViewer::getTextureCache(), sImageDecodeThread, enable_threads && true); | 1552 | LLAppViewer::sTextureFetch = new LLTextureFetch(LLAppViewer::getTextureCache(), sImageDecodeThread, enable_threads && true); |
1553 | LLImage::initClass(); | 1553 | LLImage::initClass(gSavedSettings.getBOOL("UseKDUIfAvailable")); |
1554 | 1554 | ||
1555 | // *FIX: no error handling here! | 1555 | // *FIX: no error handling here! |
1556 | return true; | 1556 | return true; |