diff --git a/indra/llimage/llimagej2c.cpp b/indra/llimage/llimagej2c.cpp index 6c1d67329..b2d453949 100644 --- a/indra/llimage/llimagej2c.cpp +++ b/indra/llimage/llimagej2c.cpp @@ -252,7 +252,9 @@ BOOL LLImageJ2C::updateData() } else { - res = mImpl->getMetadata(*this); + if (mImpl) + res = mImpl->getMetadata(*this); + else res = FALSE; } if (res) @@ -480,7 +482,8 @@ BOOL LLImageJ2C::validate(U8 *data, U32 file_size) } else { - res = mImpl->getMetadata(*this); + if (mImpl) + res = mImpl->getMetadata(*this); } } diff --git a/indra/llimagej2coj/llimagej2coj.cpp b/indra/llimagej2coj/llimagej2coj.cpp index b26044e3c..fe8ed3083 100644 --- a/indra/llimagej2coj/llimagej2coj.cpp +++ b/indra/llimagej2coj/llimagej2coj.cpp @@ -113,6 +113,7 @@ BOOL LLImageJ2COJ::decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decod // // FIXME: Get the comment field out of the texture // + if (!base.getData()) return FALSE; LLTimer decode_timer; @@ -153,6 +154,8 @@ BOOL LLImageJ2COJ::decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decod cio = opj_cio_open((opj_common_ptr)dinfo, base.getData(), base.getDataSize()); /* decode the stream and fill the image structure */ + if (!cio) return FALSE; + if (!dinfo) return FALSE; image = opj_decode(dinfo, cio); /* close the byte stream */ @@ -415,6 +418,7 @@ BOOL LLImageJ2COJ::getMetadata(LLImageJ2C &base) // // FIXME: We get metadata by decoding the ENTIRE image. // + if (!base.getData()) return FALSE; // Update the raw discard level base.updateRawDiscardLevel(); @@ -459,6 +463,8 @@ BOOL LLImageJ2COJ::getMetadata(LLImageJ2C &base) cio = opj_cio_open((opj_common_ptr)dinfo, base.getData(), base.getDataSize()); /* decode the stream and fill the image structure */ + if (!cio) return FALSE; + if (!dinfo) return FALSE; image = opj_decode(dinfo, cio); /* close the byte stream */ diff --git a/indra/newview/skins/default/xui/en-us/notifications.xml b/indra/newview/skins/default/xui/en-us/notifications.xml index 02fa4b990..8f96023c7 100644 --- a/indra/newview/skins/default/xui/en-us/notifications.xml +++ b/indra/newview/skins/default/xui/en-us/notifications.xml @@ -1076,10 +1076,10 @@ Unable to write file [[FILE]] icon="alertmodal.tga" name="UnsupportedHardware" type="alertmodal"> -Warning: Your system does not meet Ascent's minimum system requirements. If you continue using Snowglobe, you may experience poor performance. Unfortunately, we cannot provide technical support for unsupported system configurations. +Warning: Your system does not meet Ascent's minimum system requirements. If you continue using Ascent, you may experience poor performance. Unfortunately, we cannot provide technical support for unsupported system configurations. -MINSPECS -Do you wish to visit [_URL] for more information? + MINSPECS + Do you wish to visit [_URL] for more information? http://www.secondlife.com/corporate/sysreqs.php @@ -6529,9 +6529,9 @@ The URL you clicked cannot be opened from this web browser. -You do not appear to have the proper hardware requirements for Snowglobe. Snowglobe requires an OpenGL graphics card that has multitexture support. If this is the case, you may want to make sure that you have the latest drivers for your graphics card, and service packs and patches for your operating system. + You do not appear to have the proper hardware requirements for Ascent. Ascent requires an OpenGL graphics card that has multitexture support. If this is the case, you may want to make sure that you have the latest drivers for your graphics card, and service packs and patches for your operating system. -If you continue to have problems, please visit: http://www.secondlife.com/support + If you continue to have problems, please visit: http://www.secondlife.com/support