| 368 | } |
| 369 | |
| 370 | ALResult Tr2RenderContextAL::GetRenderTargetSize( uint32_t& width, uint32_t& height, uint32_t slot ) |
| 371 | { |
| 372 | if( slot >= MAX_RENDER_TARGET ) |
| 373 | { |
| 374 | return E_FAIL; |
| 375 | } |
| 376 | if( !m_boundRenderTarget[slot].IsValid() ) |
| 377 | { |
| 378 | return E_INVALIDCALL; |
| 379 | } |
| 380 | else |
| 381 | { |
| 382 | width = m_boundRenderTarget[slot].GetWidth(); |
| 383 | height = m_boundRenderTarget[slot].GetHeight(); |
| 384 | } |
| 385 | return S_OK; |
| 386 | } |
| 387 | |
| 388 | void Tr2RenderContextAL::ReleaseDeviceResources() |
| 389 | { |