mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 08:09:19 +00:00
D3D11: Ownership fixes for objects in DXTexture
This commit is contained in:
parent
77425ef83b
commit
a6b8e8b9c3
4 changed files with 35 additions and 31 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue