| 332 | } |
| 333 | |
| 334 | void Tr2RenderTarget::Destroy() |
| 335 | { |
| 336 | auto wasValid = m_renderTarget.IsValid(); |
| 337 | |
| 338 | m_renderTarget = Tr2TextureAL(); |
| 339 | m_width = 0; |
| 340 | m_height = 0; |
| 341 | m_mipCount = 0; |
| 342 | m_format = PIXEL_FORMAT_UNKNOWN; |
| 343 | m_msaa = Tr2MsaaDesc(); |
| 344 | m_flags = EX_NONE; |
| 345 | m_type = TEX_TYPE_INVALID; |
| 346 | m_gpuUsage = Tr2GpuUsage::NONE; |
| 347 | m_cpuUsage = Tr2CpuUsage::NONE; |
| 348 | |
| 349 | if( wasValid ) |
| 350 | { |
| 351 | m_onTextureChange(); |
| 352 | } |
| 353 | } |
| 354 | |
| 355 | bool Tr2RenderTarget::IsReadable() const |
| 356 | { |
nothing calls this directly
no test coverage detected