Skip to content
Snippets Groups Projects
Commit b96e52b7 authored by Tofu Linden's avatar Tofu Linden
Browse files

Merge.

parents f4b2de0d 69292076
No related branches found
No related tags found
No related merge requests found
...@@ -1736,12 +1736,25 @@ BOOL LLImageGL::getMask(const LLVector2 &tc) ...@@ -1736,12 +1736,25 @@ BOOL LLImageGL::getMask(const LLVector2 &tc)
if (u < 0.f || u > 1.f || if (u < 0.f || u > 1.f ||
v < 0.f || v > 1.f) v < 0.f || v > 1.f)
{ {
llerrs << "WTF?" << llendl; LL_WARNS_ONCE("render") << "Ugh, u/v out of range in image mask pick" << LL_ENDL;
u = v = 0.f;
llassert(false);
} }
S32 x = (S32)(u * width); S32 x = (S32)(u * width);
S32 y = (S32)(v * height); S32 y = (S32)(v * height);
if (x >= width)
{
LL_WARNS_ONCE("render") << "Ooh, width overrun on pick mask read, that coulda been bad." << LL_ENDL;
x = llmax(0, width-1);
}
if (y >= height)
{
LL_WARNS_ONCE("render") << "Ooh, height overrun on pick mask read, that woulda been bad." << LL_ENDL;
y = llmax(0, height-1);
}
S32 idx = y*width+x; S32 idx = y*width+x;
S32 offset = idx%8; S32 offset = idx%8;
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
height="20" height="20"
layout="topleft" layout="topleft"
left_pad="5" left_pad="5"
max_chars="255" max_chars="1024"
name="address" name="address"
top_delta="0" top_delta="0"
width="540"> width="540">
......
...@@ -1014,9 +1014,9 @@ anguage Infrstructure (CLI) international standard</string> ...@@ -1014,9 +1014,9 @@ anguage Infrstructure (CLI) international standard</string>
<key>darwin</key> <key>darwin</key>
<map> <map>
<key>md5sum</key> <key>md5sum</key>
<string>2eb58f544c0d912aa382de2c947be7f1</string> <string>d97d843704514ae1b5f153fab2931920</string>
<key>url</key> <key>url</key>
<uri>http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/llqtwebkit-4.6-darwin-20100104.tar.bz2</uri> <uri>http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/llqtwebkit-4.6-darwin-20100120.tar.bz2</uri>
</map> </map>
<key>linux</key> <key>linux</key>
<map> <map>
...@@ -1028,9 +1028,9 @@ anguage Infrstructure (CLI) international standard</string> ...@@ -1028,9 +1028,9 @@ anguage Infrstructure (CLI) international standard</string>
<key>windows</key> <key>windows</key>
<map> <map>
<key>md5sum</key> <key>md5sum</key>
<string>c41be1ba9728555ae5a2d2151c96dfe1</string> <string>18c1a4059bad1504a457e70c8c218033</string>
<key>url</key> <key>url</key>
<uri>http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/llqtwebkit-windows-qt4.6-20100115.tar.bz2</uri> <uri>http://viewer-source-downloads.s3.amazonaws.com/install_pkgs/llqtwebkit-windows-qt4.6-20100120.tar.bz2</uri>
</map> </map>
</map> </map>
</map> </map>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment