| 333 | } |
| 334 | |
| 335 | void Tr2TexturedSpriteObject::SetValidatedTextures( Tr2Sprite2dScene* renderer ) |
| 336 | { |
| 337 | // Set textures - note that we don't need the full check here - we would have |
| 338 | // bailed earlier while preparing the vertices. If anything changed with the textures |
| 339 | // we would have been flagged dirty so the check is always done there. |
| 340 | if( m_spriteEffect >= TR2_SFX_ONE_TEXTURE ) |
| 341 | { |
| 342 | m_texturePrimary->Apply( renderer, 0 ); |
| 343 | |
| 344 | if( m_spriteEffect >= TR2_SFX_TWO_TEXTURES ) |
| 345 | { |
| 346 | m_textureSecondary->Apply( renderer, 1 ); |
| 347 | } |
| 348 | } |
| 349 | } |