summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/Render.cpp
diff options
context:
space:
mode:
authorConnor McLaughlin <stenzek@gmail.com>2019-07-30 01:24:57 +1000
committerGitHub <noreply@github.com>2019-07-30 01:24:57 +1000
commitdea2b9c509b96cb58182b883c1df9f9f7f9234bf (patch)
tree040c38404307c5e2a0bc7986225ed49b4b3aabb7 /Source/Core/VideoBackends/D3D/Render.cpp
parentb0113b6c64a7807e35cfd9dd597d3c5e77b4ceda (diff)
parentbaa9636d48008af602e15c76a3647317ff4d0aa4 (diff)
Merge pull request #8258 from CookiePLMonster/dx11.1-detection-fixes
D3D11 resources refactor and DX11.1 feature detection fixes
Diffstat (limited to 'Source/Core/VideoBackends/D3D/Render.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D/Render.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/D3D/Render.cpp b/Source/Core/VideoBackends/D3D/Render.cpp
index e058bd1c66..d16a530c81 100644
--- a/Source/Core/VideoBackends/D3D/Render.cpp
+++ b/Source/Core/VideoBackends/D3D/Render.cpp
@@ -82,10 +82,10 @@ void Renderer::Create3DVisionTexture(int width, int height)
CD3D11_TEXTURE2D_DESC texture_desc(DXGI_FORMAT_R8G8B8A8_UNORM, width * 2, height + 1, 1, 1,
D3D11_BIND_RENDER_TARGET, D3D11_USAGE_DEFAULT, 0, 1, 0, 0);
- ID3D11Texture2D* texture;
- HRESULT hr = D3D::device->CreateTexture2D(&texture_desc, &sys_data, &texture);
+ ComPtr<ID3D11Texture2D> texture;
+ HRESULT hr = D3D::device->CreateTexture2D(&texture_desc, &sys_data, texture.GetAddressOf());
CHECK(SUCCEEDED(hr), "Create 3D Vision Texture");
- m_3d_vision_texture = DXTexture::CreateAdopted(texture);
+ m_3d_vision_texture = DXTexture::CreateAdopted(std::move(texture));
m_3d_vision_framebuffer = DXFramebuffer::Create(m_3d_vision_texture.get(), nullptr);
}