Skip to content

Commit

Permalink
WinRT: minor d3d11 code cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLudwig committed Dec 25, 2013
1 parent 8c8feb8 commit 43e27aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/render/direct3d11/SDL_render_d3d11.cpp
Expand Up @@ -375,7 +375,6 @@ D3D11_CreateDeviceResources(SDL_Renderer * renderer)
}

// Get the Direct3D 11.1 API device and context interfaces.
Microsoft::WRL::ComPtr<ID3D11Device1> d3dDevice1;
result = device.As(&(data->d3dDevice));
if (FAILED(result)) {
WIN_SetErrorFromHRESULT(__FUNCTION__ ", ID3D11Device to ID3D11Device1", result);
Expand Down Expand Up @@ -767,7 +766,7 @@ D3D11_CreateWindowSizeDependentResources(SDL_Renderer * renderer)
#endif
swapChainDesc.Flags = 0;

ComPtr<IDXGIDevice1> dxgiDevice;
ComPtr<IDXGIDevice1> dxgiDevice;
result = data->d3dDevice.As(&dxgiDevice);
if (FAILED(result)) {
WIN_SetErrorFromHRESULT(__FUNCTION__ ", ID3D11Device1 to IDXGIDevice1", result);
Expand Down

0 comments on commit 43e27aa

Please sign in to comment.