Ignore:
Timestamp:
07/04/13 08:12:47 (12 years ago)
Author:
shark
Message:
  • texture_atlas: Fixed exact fit behavior bug.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gfx/texture_atlas.cc

    r142 r144  
    8787        glm::ivec3 node = m_nodes[ index ];
    8888
    89         if ( (  node.x + size.x ) > ( m_size.x - 1 ) )
     89        if ( (  node.x + size.x ) > ( m_size.x ) )
    9090        {
    9191                return -1;
     
    102102                        y = node.y;
    103103                }
    104                 if( (y + size.y) > (m_size.y-1) )
     104                if( (y + size.y) > ( m_size.y ) )
    105105                {
    106106                        return -1;
Note: See TracChangeset for help on using the changeset viewer.