| 497 | } |
| 498 | |
| 499 | bool TriTextureRes::SaveAsync( const wchar_t* filename ) |
| 500 | { |
| 501 | // Only permit saving of 2d and cube textures |
| 502 | if( m_type == TEX_TYPE_INVALID ) |
| 503 | { |
| 504 | CCP_LOGERR( "Texture save failed - texture is invalid" ); |
| 505 | return false; |
| 506 | } |
| 507 | else if( m_type != TEX_TYPE_2D && m_type != TEX_TYPE_CUBE ) |
| 508 | { |
| 509 | CCP_LOGERR( "Texture save failed - only 2d and cubemap textures can be saved" ); |
| 510 | return false; |
| 511 | } |
| 512 | |
| 513 | return StartAsyncSave( filename ); |
| 514 | } |
| 515 | |
| 516 | bool TriTextureRes::DoPrepareAsyncSave( void ) |
| 517 | { |