D3D11: Ownership fixes for objects in DXTexture

This commit is contained in:
Silent
2019-07-21 16:31:22 +02:00
parent 77425ef83b
commit a6b8e8b9c3
4 changed files with 35 additions and 31 deletions

View File

@ -33,7 +33,7 @@ bool SwapChain::CreateSwapChainBuffers()
if (FAILED(hr))
return false;
m_texture = DXTexture::CreateAdopted(texture.Get());
m_texture = DXTexture::CreateAdopted(std::move(texture));
if (!m_texture)
return false;