Releases all references
| 656 | // Releases all references |
| 657 | // |
| 658 | void D3D11RenderManager::CleanRefs() { |
| 659 | if (m_VertexShader) { |
| 660 | m_VertexShader.Reset(); |
| 661 | } |
| 662 | |
| 663 | if (m_PixelShaderNv12) { |
| 664 | m_PixelShaderNv12.Reset(); |
| 665 | } |
| 666 | |
| 667 | if (m_PixelShader420p) { |
| 668 | m_PixelShader420p.Reset(); |
| 669 | } |
| 670 | |
| 671 | if (m_InputLayout) { |
| 672 | m_InputLayout.Reset(); |
| 673 | } |
| 674 | |
| 675 | if (m_RTV) { |
| 676 | m_RTV.Reset(); |
| 677 | } |
| 678 | |
| 679 | if (m_SamplerLinear) { |
| 680 | m_SamplerLinear.Reset(); |
| 681 | } |
| 682 | |
| 683 | if (m_BlendState) { |
| 684 | m_BlendState.Reset(); |
| 685 | } |
| 686 | |
| 687 | if (m_DeviceContext) { |
| 688 | m_DeviceContext.Reset(); |
| 689 | } |
| 690 | |
| 691 | if (m_Device) { |
| 692 | m_Device.Reset(); |
| 693 | } |
| 694 | |
| 695 | if (m_SwapChain) { |
| 696 | m_SwapChain.Reset(); |
| 697 | } |
| 698 | |
| 699 | if (m_luminanceView) { |
| 700 | m_luminanceView.Reset(); |
| 701 | } |
| 702 | |
| 703 | if (m_chrominanceView) { |
| 704 | m_chrominanceView.Reset(); |
| 705 | } |
| 706 | |
| 707 | if (m_Factory) { |
| 708 | if (m_OcclusionCookie) { |
| 709 | m_Factory->UnregisterOcclusionStatus(m_OcclusionCookie); |
| 710 | m_OcclusionCookie = 0; |
| 711 | } |
| 712 | m_Factory.Reset(); |
| 713 | } |
| 714 | } |
| 715 |
nothing calls this directly
no outgoing calls
no test coverage detected