Ticket #5291: libs_libmythui_mythpainter_ogl.cpp-function-parameters-hidden-by-declarations.patch

File libs_libmythui_mythpainter_ogl.cpp-function-parameters-hidden-by-declarations.patch, 838 bytes (added by Erik Hovland <erik@…>, 16 years ago)
  • libs/libmythui/mythpainter_ogl.cpp

    The original MythImage pointer parameter is hidden by a declaration
    
    From: Erik Hovland <erik@hovland.org>
    
    of the same name towards the end of the function.
    ---
    
     libs/libmythui/mythpainter_ogl.cpp |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/libs/libmythui/mythpainter_ogl.cpp b/libs/libmythui/mythpainter_ogl.cpp
    index d4a0154..672ea70 100644
    a b void MythOpenGLPainter::BindTextureFromCache(MythImage *im, 
    226226
    227227    if (m_ImageExpireList.size() > MAX_GL_ITEMS)
    228228    {
    229         MythImage *im = m_ImageExpireList.front();
     229        MythImage *expiredIm = m_ImageExpireList.front();
    230230        m_ImageExpireList.pop_front();
    231         RemoveImageFromCache(im);
     231        RemoveImageFromCache(expiredIm);
    232232    }
    233233}
    234234