diff options
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; } |
