diff options
| author | Dave Parks <davep@lindenlab.com> | 2014-04-16 13:21:06 -0500 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2014-04-16 13:21:06 -0500 |
| commit | 816e8578f9b63640afde942df282ccf5ed1385a5 (patch) | |
| tree | 8b229f6311f46b66ce1e4163776438e392593b23 /indra/llrender/llfontfreetype.cpp | |
| parent | 678e8621794e774dc6ecc14b9fc3628583e4b935 (diff) | |
Backed out changeset: d0dfe3cda5b1
Diffstat (limited to 'indra/llrender/llfontfreetype.cpp')
| -rwxr-xr-x | indra/llrender/llfontfreetype.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/indra/llrender/llfontfreetype.cpp b/indra/llrender/llfontfreetype.cpp index 7ab4e93da5..84c782e958 100755 --- a/indra/llrender/llfontfreetype.cpp +++ b/indra/llrender/llfontfreetype.cpp @@ -448,11 +448,7 @@ LLFontGlyphInfo* LLFontFreetype::addGlyphFromFont(const LLFontFreetype *fontp, l LLImageGL *image_gl = mFontBitmapCachep->getImageGL(bitmap_num); LLImageRaw *image_raw = mFontBitmapCachep->getImageRaw(bitmap_num); - - if (image_gl) - { - image_gl->setSubImage(image_raw, 0, 0, image_gl->getWidth(), image_gl->getHeight()); - } + image_gl->setSubImage(image_raw, 0, 0, image_gl->getWidth(), image_gl->getHeight()); return gi; } @@ -564,18 +560,13 @@ void LLFontFreetype::setSubImageLuminanceAlpha(U32 x, U32 y, U32 bitmap_num, U32 { LLImageRaw *image_raw = mFontBitmapCachep->getImageRaw(bitmap_num); - if (!image_raw) - { - return; - } - llassert(!mIsFallback); - llassert(image_raw->getComponents() == 2); + llassert(image_raw && (image_raw->getComponents() == 2)); U8 *target = image_raw->getData(); - if (!data || !target) + if (!data) { return; } |
