| 43 | } |
| 44 | |
| 45 | Tr2TextureAL* Tr2AtlasTexture::GetTexture() |
| 46 | { |
| 47 | // are we part of an atlas? If so, go get the texture from that to guarantee pointer identity. |
| 48 | if( m_textureAtlas && m_atlasArea ) |
| 49 | { |
| 50 | return m_textureAtlas->GetTexture(); |
| 51 | } |
| 52 | |
| 53 | if( m_texture.IsValid() ) |
| 54 | { |
| 55 | return &m_texture; |
| 56 | } |
| 57 | |
| 58 | if( m_textureRes && m_textureRes->IsGood() ) |
| 59 | { |
| 60 | return m_textureRes->GetTexture(); |
| 61 | } |
| 62 | |
| 63 | return nullptr; |
| 64 | } |
| 65 | |
| 66 | // -------------------------------------------------------------------------------------- |
| 67 | // Description: |
no test coverage detected