Skip to content

Commit

Permalink
WinRT: removed a comment regarding a dealt-with TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLudwig committed Aug 28, 2013
1 parent 8e3886a commit 91b0390
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/render/direct3d11/SDL_render_d3d11.cpp
Expand Up @@ -793,6 +793,9 @@ D3D11_CreateWindowSizeDependentResources(SDL_Renderer * renderer)
#if WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP
// Set the proper orientation for the swap chain, and generate the
// 3D matrix transformation for rendering to the rotated swap chain.
//
// To note, his operation is not necessary on Windows Phone, nor is it
// even supported there. It's only needed in Windows 8/RT.
DXGI_MODE_ROTATION rotation = DXGI_MODE_ROTATION_UNSPECIFIED;
switch (data->orientation)
{
Expand All @@ -816,7 +819,6 @@ D3D11_CreateWindowSizeDependentResources(SDL_Renderer * renderer)
throw ref new Platform::FailureException();
}

// TODO, WinRT: Windows Phone does not have the IDXGISwapChain1::SetRotation method. Check if an alternative is available, or needed.
result = data->swapChain->SetRotation(rotation);
if (FAILED(result)) {
WIN_SetErrorFromHRESULT(__FUNCTION__, result);
Expand Down

0 comments on commit 91b0390

Please sign in to comment.