diff options
author | David Walter Seikel | 2013-04-06 21:47:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-04-06 21:47:13 +1000 |
commit | ba982c0575515a8524d5044f928cd336303f807c (patch) | |
tree | 7044c629d59d89e5b8e896914097ccc5de619975 /linden/indra/llrender | |
parent | And actually add the new files for MOAP radar (diff) | |
download | meta-impy-ba982c0575515a8524d5044f928cd336303f807c.zip meta-impy-ba982c0575515a8524d5044f928cd336303f807c.tar.gz meta-impy-ba982c0575515a8524d5044f928cd336303f807c.tar.bz2 meta-impy-ba982c0575515a8524d5044f928cd336303f807c.tar.xz |
Clean up some compiler warnings. More to come.
Diffstat (limited to 'linden/indra/llrender')
-rw-r--r-- | linden/indra/llrender/llfont.cpp | 2 | ||||
-rw-r--r-- | linden/indra/llrender/llgl.cpp | 13 | ||||
-rw-r--r-- | linden/indra/llrender/llimagegl.cpp | 4 |
3 files changed, 11 insertions, 8 deletions
diff --git a/linden/indra/llrender/llfont.cpp b/linden/indra/llrender/llfont.cpp index 5ee3929..1cad593 100644 --- a/linden/indra/llrender/llfont.cpp +++ b/linden/indra/llrender/llfont.cpp | |||
@@ -535,6 +535,8 @@ void LLFont::renderGlyph(const U32 glyph_index) const | |||
535 | int error = FT_Load_Glyph(mFTFace, glyph_index, FT_LOAD_DEFAULT ); | 535 | int error = FT_Load_Glyph(mFTFace, glyph_index, FT_LOAD_DEFAULT ); |
536 | llassert(!error); | 536 | llassert(!error); |
537 | 537 | ||
538 | // Work around the compiler warning about error not being used when llassert() is compiled out. | ||
539 | error = error + 0; | ||
538 | error = FT_Render_Glyph(mFTFace->glyph, gFontRenderMode); | 540 | error = FT_Render_Glyph(mFTFace->glyph, gFontRenderMode); |
539 | 541 | ||
540 | mRenderGlyphCount++; | 542 | mRenderGlyphCount++; |
diff --git a/linden/indra/llrender/llgl.cpp b/linden/indra/llrender/llgl.cpp index 4a4ff1b..b57a562 100644 --- a/linden/indra/llrender/llgl.cpp +++ b/linden/indra/llrender/llgl.cpp | |||
@@ -383,11 +383,10 @@ bool LLGLManager::initGL() | |||
383 | if (mGLVendor.substr(0,4) == "ATI ") | 383 | if (mGLVendor.substr(0,4) == "ATI ") |
384 | { | 384 | { |
385 | mGLVendorShort = "ATI"; | 385 | mGLVendorShort = "ATI"; |
386 | BOOL mobile = FALSE; | 386 | // This is not used anywhere. |
387 | if (mGLRenderer.find("MOBILITY") != std::string::npos) | 387 | //BOOL mobile = FALSE; |
388 | { | 388 | //if (mGLRenderer.find("MOBILITY") != std::string::npos) |
389 | mobile = TRUE; | 389 | // mobile = TRUE; |
390 | } | ||
391 | mIsATI = TRUE; | 390 | mIsATI = TRUE; |
392 | 391 | ||
393 | #if LL_WINDOWS && !LL_MESA_HEADLESS | 392 | #if LL_WINDOWS && !LL_MESA_HEADLESS |
@@ -1014,8 +1013,8 @@ void assert_glerror() | |||
1014 | void clear_glerror() | 1013 | void clear_glerror() |
1015 | { | 1014 | { |
1016 | // Create or update texture to be used with this data | 1015 | // Create or update texture to be used with this data |
1017 | GLenum error; | 1016 | //GLenum error; |
1018 | error = glGetError(); | 1017 | /*error =*/ glGetError(); |
1019 | } | 1018 | } |
1020 | 1019 | ||
1021 | /////////////////////////////////////////////////////////////// | 1020 | /////////////////////////////////////////////////////////////// |
diff --git a/linden/indra/llrender/llimagegl.cpp b/linden/indra/llrender/llimagegl.cpp index c63d7ad..f99d4a9 100644 --- a/linden/indra/llrender/llimagegl.cpp +++ b/linden/indra/llrender/llimagegl.cpp | |||
@@ -711,7 +711,9 @@ void LLImageGL::setImage(const U8* data_in, BOOL data_hasmips) | |||
711 | { | 711 | { |
712 | S32 bytes = w * h * mComponents; | 712 | S32 bytes = w * h * mComponents; |
713 | llassert(prev_mip_data); | 713 | llassert(prev_mip_data); |
714 | llassert(prev_mip_size == bytes*4); | 714 | llassert(prev_mip_size == (bytes*4)); |
715 | // Work around llassert() being compiled out and prev_mip_size not otherwise being used. | ||
716 | prev_mip_size = prev_mip_size + 0; | ||
715 | U8* new_data = new U8[bytes]; | 717 | U8* new_data = new U8[bytes]; |
716 | llassert_always(new_data); | 718 | llassert_always(new_data); |
717 | LLImageBase::generateMip(prev_mip_data, new_data, w, h, mComponents); | 719 | LLImageBase::generateMip(prev_mip_data, new_data, w, h, mComponents); |